This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
14
unikernel/duniverse/cppo/test/missing_endscope.cppo
Normal file
14
unikernel/duniverse/cppo/test/missing_endscope.cppo
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(* A common problem: *)
|
||||
|
||||
#scope
|
||||
#def TWICE(e)
|
||||
e + e
|
||||
#enddef
|
||||
(* missing #endscope 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 #scope as the
|
||||
source of the problem. *)
|
||||
Loading…
Add table
Add a link
Reference in a new issue