[vala/wip/tests] Fixes



commit 9dca7fe5671f857fc806c93f04f9cf1a895c0484
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Feb 7 09:55:15 2018 +0100

    Fixes

 tests/semantic/foreach-iterator-args.test      |    2 +-
 tests/semantic/foreach-iterator-void.test      |    2 +-
 tests/semantic/foreach-missing-iterator.test   |    2 +-
 tests/semantic/foreach-missing-next-value.test |    2 +-
 tests/semantic/foreach-next-args.test          |    2 +-
 tests/semantic/foreach-next-get-args.test      |    2 +-
 tests/semantic/foreach-next-get-void.test      |    2 +-
 tests/semantic/foreach-next-missing-get.test   |    2 +-
 tests/semantic/foreach-next-value-args.test    |    6 +++---
 tests/semantic/foreach-next-value-void.test    |    2 +-
 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 3638b55..37fce34 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 b2f6e64..1b147bd 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 a224d77..66e67a0 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 a88d37a..77533d3 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 069353b..0240d38 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 368269f..dc784db 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 92c0dea..8b32fda 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 10e7b04..3cb75d9 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 ff422f8..c0a3e57 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 4a082af..68125b6 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 a5152f6..c6198b0 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) {
        }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]