1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Invalid Code public class Iterator<G> { } public class Test<G> { public Iterator<G> iterator (int foo) { return new Iterator<G> (); } } void main () { Test<string?> test = null; foreach (var t in test) { } }