code wiki / (root) / nx_fx_int_overflow_refused.nx

nx_fx_int_overflow_refused.nx source

↩ module page · 8 lines · 396 B

1// nx_fx_int_overflow_refused.nx -- LN40 planted REFUSAL: this program must NOT compile. The integer literal 2// exceeds i64 and used to wrap silently to a different number; the lexer now refuses it by name. A corpus 3// census counts this file as its one expected refusal. license_tier: ORIGINAL 4func main() -> i64 { 5 let x: i64 = 99999999999999999999 6 if x == 0 { return 1 } 7 return 0 8}