Files
rlox/examples/test_error.lox
T

10 lines
260 B
Lox
Raw Normal View History

2025-10-04 19:02:33 +02:00
// Test script to verify error positioning
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