diff options
Diffstat (limited to 'tests/semantic/foreach-next-value-args.test')
-rw-r--r-- | tests/semantic/foreach-next-value-args.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/semantic/foreach-next-value-args.test b/tests/semantic/foreach-next-value-args.test index ff422f897..c0a3e575d 100644 --- a/tests/semantic/foreach-next-value-args.test +++ b/tests/semantic/foreach-next-value-args.test @@ -1,8 +1,8 @@ Invalid Code public class Iterator<G> { - public bool next_value (string test) { - return true; + public G? next_value (string test) { + return null; } } @@ -13,7 +13,7 @@ public class Test<G> { } void main () { - Test test; + Test<string?> test = null; foreach (var t in test) { } } |