mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Fixed a segfault
This commit is contained in:
2
test/scripts/mustfail/bad-function-identifier.toy
Normal file
2
test/scripts/mustfail/bad-function-identifier.toy
Normal file
@@ -0,0 +1,2 @@
|
||||
1.type();
|
||||
|
||||
@@ -2,6 +2,3 @@
|
||||
var t = astype [int];
|
||||
var arr: t = [1, 2, 3.14];
|
||||
}
|
||||
|
||||
|
||||
print "All good";
|
||||
|
||||
@@ -2,6 +2,3 @@
|
||||
var t = astype [string:int];
|
||||
var dict: t = ["one": 1, "two": 2, 3:4];
|
||||
}
|
||||
|
||||
|
||||
print "All good";
|
||||
|
||||
@@ -2,6 +2,3 @@
|
||||
var t = astype [string:int];
|
||||
var dict: t = ["one": 1, "two": 2, "pi": 3.14];
|
||||
}
|
||||
|
||||
|
||||
print "All good";
|
||||
|
||||
@@ -2,6 +2,3 @@
|
||||
var a: [int] = [1, 2, 3];
|
||||
print a[a];
|
||||
}
|
||||
|
||||
|
||||
print "All good";
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
{
|
||||
var s = "foo" - "bar";
|
||||
}
|
||||
|
||||
print "All good";
|
||||
|
||||
Reference in New Issue
Block a user