mte/unikernel/duniverse/cppo/test/missing_enddef.cppo

13 lines
250 B
Text
Raw Normal View History

2025-11-11 02:07:51 +01:00
(* A common problem: *)
#def TWICE(e)
e + e
(* missing #enddef here *)
let f x =
TWICE(x)
(* The error is detected by the parser at the end of the file,
but we are able to report the location of the #def as the
source of the problem. *)