// A reserved/builtin type-name spelling is rejected as the NAME of a `::` // declaration too — both a constant (`s2 :: 5`) and a function // (`u8 :: (…) {…}`). A function name and a const name are binding sites just // like `s2 := …`; previously the `::` decl forms slipped past the // reserved-name check, so a bare reserved-name function compiled silently and // became callable — bypassing the backtick rule that handwritten sx must use. // The backtick escape (`` `s2 :: … ``, examples/0153) is the only way to spell // these names; `#import c` foreign decls remain exempt (examples/1220). // // Regression (issue 0089). Expected: one error per declaration, each caret on // the declared name; exit 1. #import "modules/std.sx"; s2 :: 5; u8 :: (n: s64) -> s64 { return n + 7; } main :: () -> s32 { return 0; }