Skip to content

Commit ee6d9d0

Browse files
committed
test: add test case for top-level return statement
Add a test case to verify compile-time error for top-level return statement, supporting resolver's semantic error handling
1 parent d7e4f5a commit ee6d9d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test_programs/r5/1.lox

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
---
2-
expected_error_type: none
2+
expected_error_type: compile
33
---
4+
return "foo";

0 commit comments

Comments
 (0)