allow constant expressions in if statements

This commit is contained in:
dfsek
2020-12-20 01:50:41 -07:00
parent c4f927e72c
commit 8b97d74e0a
4 changed files with 37 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
test("hello", 1);
test("ghgj{}()\"\\hgjhgj", 3.4);
if(test("hello", 1) == test("hello", 1)) {
if(test("hello", 1) == "a string literal") {
test("hello", 1);
}