summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-02-07 09:55:15 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2018-02-07 10:30:42 +0100
commit9dca7fe5671f857fc806c93f04f9cf1a895c0484 (patch)
treec969e192d21da259ae00ccb817321dbd4c176b90
parentea0941c3e97ac62bbce83816cb879cc219d0e658 (diff)
downloadvala-wip/tests.tar.gz
-rw-r--r--tests/semantic/foreach-iterator-args.test2
-rw-r--r--tests/semantic/foreach-iterator-void.test2
-rw-r--r--tests/semantic/foreach-missing-iterator.test2
-rw-r--r--tests/semantic/foreach-missing-next-value.test2
-rw-r--r--tests/semantic/foreach-next-args.test2
-rw-r--r--tests/semantic/foreach-next-get-args.test2
-rw-r--r--tests/semantic/foreach-next-get-void.test2
-rw-r--r--tests/semantic/foreach-next-missing-get.test2
-rw-r--r--tests/semantic/foreach-next-value-args.test6
-rw-r--r--tests/semantic/foreach-next-value-void.test2
-rw-r--r--tests/semantic/foreach-next-void.test2
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) {
}
}