✓
Passing This code compiles and runs correctly.
Code
// Test: Using 'string' type (habit from other languages)
// Parser catches 'string' and suggests '[]const u8'
~event greet { name: string }
Must fail at frontend compile:
Parsing or type-checking must reject the program.
Expected compiler error
error[PARSE003]: Unknown type 'string'. In Zig/Koru, use '[]const u8' for strings
--> tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_069_string_type/input.kz:5:1
|
5 |
| ^