repo.or.cz
/
vala-gnome.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Release 0.41.92
[vala-gnome.git]
/
tests
/
semantic
/
foreach-next-get-args.test
blob
dc784db735d25a6ffe4f9793cfcca9c87395355e
1
Invalid Code
2
3
public class Iterator<G> {
4
public bool next () {
5
return true;
6
}
7
8
public G get (int arg) {
9
return (G)null;
10
}
11
}
12
13
public class Test<G> {
14
public Iterator<G> iterator () {
15
return new Iterator<G> ();
16
}
17
}
18
19
void main () {
20
Test<string?> test = null;
21
foreach (var t in test) {
22
}
23
}