This project is read-only.
1
Vote

Collection Initializers don't show Quick Fixes to import extension methods

description

Source:
class X : IEnumerable {
    public IEnumerator GetEnumerator() {
        new X { 1 };
        return null;
    }
}


namespace Ext {
    static class Extensions {
        public static void Add(this X x, int i) { }
    }
}
The new X callsite should show a quick fix for using Ext.

comments