Fixed a segfault

This commit is contained in:
2023-02-09 08:16:56 +00:00
parent 60908c8bf3
commit fc67d6a18b
9 changed files with 60 additions and 23 deletions

View File

@@ -0,0 +1,2 @@
1.type();

View File

@@ -2,6 +2,3 @@
var t = astype [int];
var arr: t = [1, 2, 3.14];
}
print "All good";

View File

@@ -2,6 +2,3 @@
var t = astype [string:int];
var dict: t = ["one": 1, "two": 2, 3:4];
}
print "All good";

View File

@@ -2,6 +2,3 @@
var t = astype [string:int];
var dict: t = ["one": 1, "two": 2, "pi": 3.14];
}
print "All good";

View File

@@ -2,6 +2,3 @@
var a: [int] = [1, 2, 3];
print a[a];
}
print "All good";

View File

@@ -1,5 +1,3 @@
{
var s = "foo" - "bar";
}
print "All good";

View File

@@ -96,6 +96,7 @@ int main() {
//run each file in tests/scripts/
char* filenames[] = {
"access-parent-directory.toy",
"bad-function-identifier.toy",
"declare-types-array.toy",
"declare-types-dictionary-key.toy",
"declare-types-dictionary-value.toy",