diff options
Diffstat (limited to 'tests/semantic')
-rw-r--r-- | tests/semantic/foreach-iterator-args.test | 2 | ||||
-rw-r--r-- | tests/semantic/foreach-iterator-void.test | 2 | ||||
-rw-r--r-- | tests/semantic/foreach-missing-iterator.test | 2 | ||||
-rw-r--r-- | tests/semantic/foreach-missing-next-value.test | 2 | ||||
-rw-r--r-- | tests/semantic/foreach-next-args.test | 2 | ||||
-rw-r--r-- | tests/semantic/foreach-next-get-args.test | 2 | ||||
-rw-r--r-- | tests/semantic/foreach-next-get-void.test | 2 | ||||
-rw-r--r-- | tests/semantic/foreach-next-missing-get.test | 2 | ||||
-rw-r--r-- | tests/semantic/foreach-next-value-args.test | 6 | ||||
-rw-r--r-- | tests/semantic/foreach-next-value-void.test | 2 | ||||
-rw-r--r-- | tests/semantic/foreach-next-void.test | 2 |
11 files changed, 13 insertions, 13 deletions
diff --git a/tests/semantic/foreach-iterator-args.test b/tests/semantic/foreach-iterator-args.test index 3638b55cc..37fce34a9 100644 --- a/tests/semantic/foreach-iterator-args.test +++ b/tests/semantic/foreach-iterator-args.test @@ -10,7 +10,7 @@ public class Test<G> { } void main () { - Test test; + Test<string?> test = null; foreach (var t in test) { } } diff --git a/tests/semantic/foreach-iterator-void.test b/tests/semantic/foreach-iterator-void.test index b2f6e6460..1b147bdd9 100644 --- a/tests/semantic/foreach-iterator-void.test +++ b/tests/semantic/foreach-iterator-void.test @@ -7,7 +7,7 @@ public class Test<G> { } void main () { - Test test; + Test<string?> test = null; foreach (var t in test) { } } diff --git a/tests/semantic/foreach-missing-iterator.test b/tests/semantic/foreach-missing-iterator.test index a224d772c..66e67a045 100644 --- a/tests/semantic/foreach-missing-iterator.test +++ b/tests/semantic/foreach-missing-iterator.test @@ -4,7 +4,7 @@ public class Test<G> { } void main () { - Test test; + Test<string?> test = null; foreach (var t in test) { } } diff --git a/tests/semantic/foreach-missing-next-value.test b/tests/semantic/foreach-missing-next-value.test index a88d37ae2..77533d3d8 100644 --- a/tests/semantic/foreach-missing-next-value.test +++ b/tests/semantic/foreach-missing-next-value.test @@ -10,7 +10,7 @@ public class Test<G> { } void main () { - Test test; + Test<string?> test = null; foreach (var t in test) { } } diff --git a/tests/semantic/foreach-next-args.test b/tests/semantic/foreach-next-args.test index 069353b57..0240d38c9 100644 --- a/tests/semantic/foreach-next-args.test +++ b/tests/semantic/foreach-next-args.test @@ -13,7 +13,7 @@ public class Test<G> { } void main () { - Test test; + Test<string?> test = null; foreach (var t in test) { } } diff --git a/tests/semantic/foreach-next-get-args.test b/tests/semantic/foreach-next-get-args.test index 368269fc6..dc784db73 100644 --- a/tests/semantic/foreach-next-get-args.test +++ b/tests/semantic/foreach-next-get-args.test @@ -17,7 +17,7 @@ public class Test<G> { } void main () { - Test test; + Test<string?> test = null; foreach (var t in test) { } } diff --git a/tests/semantic/foreach-next-get-void.test b/tests/semantic/foreach-next-get-void.test index 92c0dea5b..8b32fda61 100644 --- a/tests/semantic/foreach-next-get-void.test +++ b/tests/semantic/foreach-next-get-void.test @@ -17,7 +17,7 @@ public class Test<G> { } void main () { - Test test; + Test<string?> test = null; foreach (var t in test) { } } diff --git a/tests/semantic/foreach-next-missing-get.test b/tests/semantic/foreach-next-missing-get.test index 10e7b045c..3cb75d98c 100644 --- a/tests/semantic/foreach-next-missing-get.test +++ b/tests/semantic/foreach-next-missing-get.test @@ -13,7 +13,7 @@ public class Test<G> { } void main () { - Test test; + Test<string?> test = null; foreach (var t in test) { } } 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) { } } diff --git a/tests/semantic/foreach-next-value-void.test b/tests/semantic/foreach-next-value-void.test index 4a082aff9..68125b674 100644 --- a/tests/semantic/foreach-next-value-void.test +++ b/tests/semantic/foreach-next-value-void.test @@ -13,7 +13,7 @@ public class Test<G> { } void main () { - Test test; + Test<string?> test = null; foreach (var t in test) { } } diff --git a/tests/semantic/foreach-next-void.test b/tests/semantic/foreach-next-void.test index a5152f624..c6198b0d4 100644 --- a/tests/semantic/foreach-next-void.test +++ b/tests/semantic/foreach-next-void.test @@ -13,7 +13,7 @@ public class Test<G> { } void main () { - Test test; + Test<string?> test = null; foreach (var t in test) { } } |