test/bad.sod: Test error reporting and recovery.
[sod] / test / bad.ref
CommitLineData
deef4956
MW
1| ;; Hello from Lisp!
2| ;; DEMO "foo"
3* test/bad.sod:31:13: syntax error: Expected `{' but found `('
4* test/bad.sod:31:29: lexical error: Empty character literal
5* test/bad.sod:31:32: lexical error: Too many characters in character literal
6* test/bad.sod:33:6: syntax error: Expected <identifier> but found `{'
7* test/bad.sod:33:6: syntax error: Expected `:' but found `{'
8* test/bad.sod:36:12: syntax error: Expected `:' but found `{'
9* test/bad.sod:43:17: error: Slot declarations cannot have function type
10* test/bad.sod:43:19: syntax error: Expected <identifier> but found `.'
11* test/bad.sod:45:2: error: No message in class `Wrong' with name `fizzbuzz'
12* test/bad.sod:45:12: error: No superclass of `Wrong' with nickname `wtf'
13* test/bad.sod:45:26: error: No instance slot in class `Wrong' with name `z'
14* test/bad.sod:45:30: syntax error: Expected <identifier> but found `='
15* test/bad.sod:45:33: error: No superclass of `Wrong' with nickname `x'
16* test/bad.sod:46:29: syntax error: Expected `;' but found `{'
17* test/bad.sod:46:29: syntax error: Expected `}' but found `{'
18* test/bad.sod:41:13: error: Duplicate initializer for instance slot `int wrong.x' in class `Wrong'
19* test/bad.sod:40:11: note: Previous definition was here
20* test/bad.sod:42:13: error: Duplicate initializer for instance slot `int wrong.x' in class `Wrong'
21* test/bad.sod:40:11: note: Previous definition was here
22* test/bad.sod:40:2: error: Duplicate primary direct method for message `void wrong.frob(void)' in classs `Wrong'
23* test/bad.sod:38:2: note: Previous definition was here
24* test/bad.sod:46:29: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `{'
25* test/bad.sod:46:49: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `}'
26* test/bad.sod:47:0: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `}'
27* test/bad.sod:52:30: error: Type mismatch for keyword argument `x' in methods for message `void fail.badkw(?int x)' applicable to class `Arrgh'
28* test/bad.sod:54:2: note: Type `double' declared in primary direct method of `Arrgh' (defined here)
29* test/bad.sod:49:43: note: Type `int' declared in message definition in `Fail' (here)
30* test/bad.sod:50:21: note: Class `Fail' is a direct superclass of `Unlikely', defined here
31* test/bad.sod:52:30: note: Class `Unlikely' is a direct superclass of `Arrgh', defined here
32* test/bad.sod:52:30: error: Type mismatch for keyword argument `y' in methods for message `void fail.badkw(?int x)' applicable to class `Arrgh'
33* test/bad.sod:51:53: note: Type `int' declared in primary direct method of `Whoops' (defined here)
34* test/bad.sod:52:30: note: Class `Whoops' is a direct superclass of `Arrgh', defined here
35* test/bad.sod:50:58: note: Type `double' declared in primary direct method of `Unlikely' (defined here)
36* test/bad.sod:60:41: error: Duplicate nickname `sub' in superclasses of `BadNicks': used by `RSub' and `LSub'
37* test/bad.sod:60:41: note: Class `RSub' is a direct superclass of `BadNicks', defined here
38* test/bad.sod:60:41: note: Class `LSub' is a direct superclass of `BadNicks', defined here
39* test/bad.sod:60:41: error: Duplicate nickname `join' in superclasses of `BadNicks': used by `JSuper' and `BadNicks'
40* test/bad.sod:58:32: note: Class `JSuper' is a direct superclass of `LSub', defined here
41* test/bad.sod:66:37: error: Ill-formed superclass graph: can't construct class precedence list for `Splinch'
42* test/bad.sod:66:37: note: Class `Splinch' orders `SodObject' before `Nioj'
43* test/bad.sod:64:24: note: Class `Join' orders `Left' before `SodObject'
44* test/bad.sod:66:37: note: Class `Join' is a direct superclass of `Splinch', defined here
45* test/bad.sod:65:24: note: Class `Nioj' orders `Nioj' before `Left' and `SodObject'
46* test/bad.sod:66:37: note: Class `Nioj' is a direct superclass of `Splinch', defined here
47* test/bad.sod:67:37: error: Class `Wrong' is incomplete
48* test/bad.sod:67:37: error: In `Hopeless', chain-to class `Super' is not a proper superclass
49* test/bad.sod:83:46: error: No obvious choice for implicit metaclass: candidates are `MyClass' and `MyOtherClass'
50* test/bad.sod:78:26: note: Direct superclass `MyObject' defined here has metaclass `MyClass'
51* test/bad.sod:82:58: note: Direct superclass `MyOtherObject' defined here has metaclass `MyOtherClass'
52* test/bad.sod:83:46: error: Metaclass `MyClass' of `WhichMetaClass' isn't a subclass of `MyOtherClass'
53* test/bad.sod:82:58: note: Direct superclass `MyOtherObject' defined here has metaclass `MyOtherClass'
54* test/bad.sod:88:0: error: Class `dismissed' is incomplete
55* test/bad.sod:88:0: syntax error: Expected `{' but found `;'
56* test/bad.sod:88:0: syntax error: Expected `}' but found `;'
57* test/bad.sod:88:0: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `;'
58* sod: Finished with 34 errors
59; rc = 2