Skip to content

Commit

Permalink
fix the tests to use !<...>
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiayang committed Nov 5, 2018
1 parent c1da94a commit fb1eac5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/tests/linkedlist.flx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public fn doLinkedListTest()
{
do {
var list = LinkedList(data: 41)
LinkedList<T: int>::hello()
LinkedList!<int>::hello()

var list2 = LinkedList(data: "foo")
list2.insert("hello")
Expand Down
2 changes: 1 addition & 1 deletion build/tests/unions.flx
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: str>::some, y as option<T: int>::some)
printf("x = %s, y = %d\n", x as option!<str>::some, y as option!<int>::some)
}

do {
Expand Down
6 changes: 3 additions & 3 deletions build/tests/using.flx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public fn doUsingTest()
}
}

using xxx<T: int>::Foo as _
using xxx!<int>::Foo as _

printf("a = %d, b = %d, c = %d\n", Alpha.value, Bravo.value, Charlie.value)
}
Expand All @@ -60,8 +60,8 @@ public fn doUsingTest()
none
}

using Option<T: int> as _
using Option<T: str> as _
using Option!<T: int> as _
using Option!<str> as _

let x = some(30)
let y = some("bye")
Expand Down

0 comments on commit fb1eac5

Please sign in to comment.