✓
Passing This code compiles and runs correctly.
Code
// Test: Using 'return' in flow (habit from other languages)
// Parser catches return/break/continue and suggests '_' instead
~event foo { x: i32 }
| done {}
~foo(x: 1)
| done |> return
Expected Output
error[PARSE003]: Flows terminate with '_', not 'return'
--> tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_068_return_in_flow/input.kz:9:1
|
9 | | done |> return
| ^
Test Configuration
Expected Behavior:
FRONTEND_COMPILE_ERROR