11 lines
271 B
Lox
11 lines
271 B
Lox
// Test script to verify error positioning
|
|
"no"();
|
|
var a := 5;
|
|
var b := "hello";
|
|
print 0;
|
|
var result := a + b; // This should cause a type error
|
|
print 1;
|
|
43 + "hello"; // This should cause a type error
|
|
print result;
|
|
print 46 + "world"; // This should cause a type error
|