summaryrefslogtreecommitdiff
path: root/tests/semantic/foreach-iterator-void.test
blob: 1b147bdd95b3732f2b7ab0dd658ed6bf3d59966b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Invalid Code

public class Test<G> {
	public void iterator () {
		return;
	}
}

void main () {
	Test<string?> test = null;
	foreach (var t in test) {
	}
}