From fb1eac5529a7ca3734ca35c0829e1996b1591edf Mon Sep 17 00:00:00 2001 From: zhiayang Date: Mon, 5 Nov 2018 17:43:57 +0800 Subject: [PATCH] fix the tests to use `!<...>` --- build/tests/linkedlist.flx | 2 +- build/tests/unions.flx | 2 +- build/tests/using.flx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/tests/linkedlist.flx b/build/tests/linkedlist.flx index a27f84b1..23070626 100644 --- a/build/tests/linkedlist.flx +++ b/build/tests/linkedlist.flx @@ -50,7 +50,7 @@ public fn doLinkedListTest() { do { var list = LinkedList(data: 41) - LinkedList::hello() + LinkedList!::hello() var list2 = LinkedList(data: "foo") list2.insert("hello") diff --git a/build/tests/unions.flx b/build/tests/unions.flx index a4895e4c..cf1a29c1 100644 --- a/build/tests/unions.flx +++ b/build/tests/unions.flx @@ -18,7 +18,7 @@ public fn doUnionsTest() let x = option::some("foobar") let y = option::some(456) - printf("x = %s, y = %d\n", x as option::some, y as option::some) + printf("x = %s, y = %d\n", x as option!::some, y as option!::some) } do { diff --git a/build/tests/using.flx b/build/tests/using.flx index a4fde4f3..8a51d20d 100644 --- a/build/tests/using.flx +++ b/build/tests/using.flx @@ -34,7 +34,7 @@ public fn doUsingTest() } } - using xxx::Foo as _ + using xxx!::Foo as _ printf("a = %d, b = %d, c = %d\n", Alpha.value, Bravo.value, Charlie.value) } @@ -60,8 +60,8 @@ public fn doUsingTest() none } - using Option as _ - using Option as _ + using Option! as _ + using Option! as _ let x = some(30) let y = some("bye")