053 reject old tap syntax

✓ Passing This code compiles and runs correctly.

Code

// Test: Parser should reject old tap syntax
// The old syntax `~source -> dest` was replaced with `~tap(source -> dest)`

const std = @import("std");

~event foo {}

// OLD SYNTAX - should be rejected with helpful error
~foo -> *
|> _
input.kz

Expected

error[PARSE001]: invalid flow invocation
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_053_reject_old_tap_syntax/input.kz:9:0
    |
  9 | ~foo -> *
    | ^

Test Configuration

Expected Behavior:

FRONTEND_COMPILE_ERROR

Expected Error:

invalid flow invocation