This ports TestAstFunc2 from our home-grown content storage system to the txtar package. Since a single file can be used to represent the entire folder hierarchy, this makes it much easier to see and edit tests.
5 lines
207 B
Plaintext
5 lines
207 B
Plaintext
-- main.mcl --
|
|
$st struct{x int; x int} = struct{x => 0, x => 0,}
|
|
-- OUTPUT --
|
|
# err: errLexParse: can't set return type in parser: `can't set return type in parser: duplicate struct field of `x int`` @1:24
|