Static instance support.
[sod] / test / bad.ref
index de3b354..3188354 100644 (file)
@@ -29,9 +29,9 @@
 * 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: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:48:29: syntax error: Expected `class', `lisp', `load', `import', `typename', `code', `set', `instance', or `demo' but found `{'
+* test/bad.sod:48:49: syntax error: Expected `class', `lisp', `load', `import', `typename', `code', `set', `instance', or `demo' but found `}'
+* test/bad.sod:49:0: syntax error: Expected `class', `lisp', `load', `import', `typename', `code', `set', `instance', 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: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
+* test/bad.sod:90:0: syntax error: Expected `class', `lisp', `load', `import', `typename', `code', `set', `instance', or `demo' but found `;'
+* test/bad.sod:93:16: error: No initializer for instance slot `int st.x', required by static instance `noinit'
+* test/bad.sod:92:43: note: Slot `int st.x' defined here
+* test/bad.sod:93:16: error: No initializer for instance slot `int st.y', required by static instance `noinit'
+* test/bad.sod:92:46: note: Slot `int st.y' defined here
+* test/bad.sod:94:43: error: Duplicate initializer for instance slot `int st.x' in static instance `dupinit'
+* test/bad.sod:94:33: note: Previous definition was here
+* sod: Finished with 41 errors
 ; rc = 2