X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/deef49564bd7cd4b9d046569fdc367457f8893a0..c6b4ed992d81518f240509e6ab212d8fe705485a:/test/bad.ref diff --git a/test/bad.ref b/test/bad.ref index f5d0c6b..de3b354 100644 --- a/test/bad.ref +++ b/test/bad.ref @@ -6,54 +6,62 @@ * test/bad.sod:33:6: syntax error: Expected but found `{' * test/bad.sod:33:6: syntax error: Expected `:' but found `{' * test/bad.sod:36:12: syntax error: Expected `:' but found `{' -* test/bad.sod:43:17: error: Slot declarations cannot have function type -* test/bad.sod:43:19: syntax error: Expected but found `.' -* test/bad.sod:45:2: error: No message in class `Wrong' with name `fizzbuzz' -* test/bad.sod:45:12: error: No superclass of `Wrong' with nickname `wtf' -* test/bad.sod:45:26: error: No instance slot in class `Wrong' with name `z' -* test/bad.sod:45:30: syntax error: Expected but found `=' -* test/bad.sod:45:33: error: No superclass of `Wrong' with nickname `x' -* test/bad.sod:46:29: syntax error: Expected `;' but found `{' -* test/bad.sod:46:29: syntax error: Expected `}' but found `{' +* test/bad.sod:45:12: error: Slot declarations cannot have function type +* test/bad.sod:45:14: syntax error: Expected but found `.' +* test/bad.sod:47:2: error: No message in class `Wrong' with name `fizzbuzz' +* test/bad.sod:47:12: error: No superclass of `Wrong' with nickname `wtf' +* test/bad.sod:47:26: error: No instance slot in class `Wrong' with name `z' +* test/bad.sod:47:30: syntax error: Expected but found `=' +* test/bad.sod:47:33: error: No superclass of `Wrong' with nickname `x' +* test/bad.sod:48:29: syntax error: Expected `;' but found `{' +* test/bad.sod:48:29: syntax error: Expected `}' but found `{' +* test/bad.sod:42:7: error: Duplicate slot name `x' in class `Wrong' +* test/bad.sod:40:11: note: Previous definition was here +* test/bad.sod:44:25: error: Duplicate slot name `x' in class `Wrong' +* test/bad.sod:40:11: note: Previous definition was here +* test/bad.sod:45:7: error: Duplicate slot name `x' in class `Wrong' +* test/bad.sod:40:11: note: Previous definition was here * test/bad.sod:41:13: error: Duplicate initializer for instance slot `int wrong.x' in class `Wrong' * test/bad.sod:40:11: note: Previous definition was here -* test/bad.sod:42:13: error: Duplicate initializer for instance slot `int wrong.x' in class `Wrong' +* test/bad.sod:43:13: error: Duplicate initializer for instance slot `int wrong.x' in class `Wrong' +* test/bad.sod:40:11: note: Previous definition was here +* test/bad.sod:44:25: error: Duplicate initializer for instance slot `int wrong.x' in class `Wrong' * test/bad.sod:40:11: note: Previous definition was here * test/bad.sod:40:2: error: Duplicate primary direct method for message `void wrong.frob(void)' in classs `Wrong' * test/bad.sod:38:2: note: Previous definition was here -* test/bad.sod:46:29: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `{' -* test/bad.sod:46:49: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `}' -* test/bad.sod:47:0: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `}' -* 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' -* test/bad.sod:54:2: note: Type `double' declared in primary direct method of `Arrgh' (defined here) -* test/bad.sod:49:43: note: Type `int' declared in message definition in `Fail' (here) -* test/bad.sod:50:21: note: Class `Fail' is a direct superclass of `Unlikely', defined here -* test/bad.sod:52:30: note: Class `Unlikely' is a direct superclass of `Arrgh', defined here -* 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' -* test/bad.sod:51:53: note: Type `int' declared in primary direct method of `Whoops' (defined here) -* test/bad.sod:52:30: note: Class `Whoops' is a direct superclass of `Arrgh', defined here -* test/bad.sod:50:58: note: Type `double' declared in primary direct method of `Unlikely' (defined here) -* test/bad.sod:60:41: error: Duplicate nickname `sub' in superclasses of `BadNicks': used by `RSub' and `LSub' -* test/bad.sod:60:41: note: Class `RSub' is a direct superclass of `BadNicks', defined here -* test/bad.sod:60:41: note: Class `LSub' is a direct superclass of `BadNicks', defined here -* test/bad.sod:60:41: error: Duplicate nickname `join' in superclasses of `BadNicks': used by `JSuper' and `BadNicks' -* test/bad.sod:58:32: note: Class `JSuper' is a direct superclass of `LSub', defined here -* test/bad.sod:66:37: error: Ill-formed superclass graph: can't construct class precedence list for `Splinch' -* test/bad.sod:66:37: note: Class `Splinch' orders `SodObject' before `Nioj' -* test/bad.sod:64:24: note: Class `Join' orders `Left' before `SodObject' -* test/bad.sod:66:37: note: Class `Join' is a direct superclass of `Splinch', defined here -* test/bad.sod:65:24: note: Class `Nioj' orders `Nioj' before `Left' and `SodObject' -* test/bad.sod:66:37: note: Class `Nioj' is a direct superclass of `Splinch', defined here -* test/bad.sod:67:37: error: Class `Wrong' is incomplete -* test/bad.sod:67:37: error: In `Hopeless', chain-to class `Super' is not a proper superclass -* test/bad.sod:83:46: error: No obvious choice for implicit metaclass: candidates are `MyClass' and `MyOtherClass' -* test/bad.sod:78:26: note: Direct superclass `MyObject' defined here has metaclass `MyClass' -* test/bad.sod:82:58: note: Direct superclass `MyOtherObject' defined here has metaclass `MyOtherClass' -* test/bad.sod:83:46: error: Metaclass `MyClass' of `WhichMetaClass' isn't a subclass of `MyOtherClass' -* test/bad.sod:82:58: note: Direct superclass `MyOtherObject' defined here has metaclass `MyOtherClass' -* test/bad.sod:88:0: error: Class `dismissed' is incomplete -* test/bad.sod:88:0: syntax error: Expected `{' but found `;' -* test/bad.sod:88:0: syntax error: Expected `}' but found `;' -* test/bad.sod:88:0: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `;' -* sod: Finished with 34 errors +* test/bad.sod:48:29: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `{' +* test/bad.sod:48:49: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `}' +* test/bad.sod:49:0: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `}' +* test/bad.sod:54:30: error: Type mismatch for keyword argument `x' in methods for message `void fail.badkw(?int x)' applicable to class `Arrgh' +* test/bad.sod:56:2: note: Type `double' declared in primary direct method of `Arrgh' (defined here) +* test/bad.sod:51:43: note: Type `int' declared in message definition in `Fail' (here) +* test/bad.sod:52:21: note: Class `Fail' is a direct superclass of `Unlikely', defined here +* test/bad.sod:54:30: note: Class `Unlikely' is a direct superclass of `Arrgh', defined here +* test/bad.sod:54:30: error: Type mismatch for keyword argument `y' in methods for message `void fail.badkw(?int x)' applicable to class `Arrgh' +* test/bad.sod:53:53: note: Type `int' declared in primary direct method of `Whoops' (defined here) +* test/bad.sod:54:30: note: Class `Whoops' is a direct superclass of `Arrgh', defined here +* test/bad.sod:52:58: note: Type `double' declared in primary direct method of `Unlikely' (defined here) +* test/bad.sod:62:41: error: Duplicate nickname `sub' in superclasses of `BadNicks': used by `RSub' and `LSub' +* test/bad.sod:62:41: note: Class `RSub' is a direct superclass of `BadNicks', defined here +* test/bad.sod:62:41: note: Class `LSub' is a direct superclass of `BadNicks', defined here +* test/bad.sod:62:41: error: Duplicate nickname `join' in superclasses of `BadNicks': used by `JSuper' and `BadNicks' +* test/bad.sod:60:32: note: Class `JSuper' is a direct superclass of `LSub', defined here +* test/bad.sod:68:37: error: Ill-formed superclass graph: can't construct class precedence list for `Splinch' +* test/bad.sod:68:37: note: Class `Splinch' orders `SodObject' before `Nioj' +* test/bad.sod:66:24: note: Class `Join' orders `Left' before `SodObject' +* test/bad.sod:68:37: note: Class `Join' is a direct superclass of `Splinch', defined here +* test/bad.sod:67:24: note: Class `Nioj' orders `Nioj' before `Left' and `SodObject' +* test/bad.sod:68:37: note: Class `Nioj' is a direct superclass of `Splinch', defined here +* test/bad.sod:69:37: error: Class `Wrong' is incomplete +* test/bad.sod:69:37: error: In `Hopeless', chain-to class `Super' is not a proper superclass +* test/bad.sod:85:46: error: No obvious choice for implicit metaclass: candidates are `MyClass' and `MyOtherClass' +* test/bad.sod:80:26: note: Direct superclass `MyObject' defined here has metaclass `MyClass' +* test/bad.sod:84:58: note: Direct superclass `MyOtherObject' defined here has metaclass `MyOtherClass' +* test/bad.sod:85:46: error: Metaclass `MyClass' of `WhichMetaClass' isn't a subclass of `MyOtherClass' +* test/bad.sod:84:58: note: Direct superclass `MyOtherObject' defined here has metaclass `MyOtherClass' +* test/bad.sod:90:0: error: Class `dismissed' is incomplete +* test/bad.sod:90:0: syntax error: Expected `{' but found `;' +* test/bad.sod:90:0: syntax error: Expected `}' but found `;' +* test/bad.sod:90:0: syntax error: Expected `class', `set', `code', `typename', `import', `load', `lisp', or `demo' but found `;' +* sod: Finished with 38 errors ; rc = 2