summaryrefslogtreecommitdiff
path: root/tests/foreach/collection-iterator-args.test
blob: e4844a57012896474b1dc53580f708515a32c4f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Invalid Code

void main () {
    Test test;
    foreach (var t in test) {
        
    }
}

public class Test<G> {
    public Iterator<G> iterator (int foo) {
        return new Iterator<G> ();
    }
}

public class Iterator<G> {
    
}