-[[test.y:13.8-11: unresolved reference: `$sym'
-test.y:16.8-15: unresolved reference: `$<aa>sym'
-test.y:19.8-19: unresolved reference: `$[sym.field]'
-test.y:22.8-23: unresolved reference: `$<aa>[sym.field]'
-test.y:25.8-11: unresolved reference: `$sym'
-test.y:28.8-15: unresolved reference: `$<aa>sym'
-test.y:31.8-13: unresolved reference: `$[sym]'
-test.y:33.8-17: unresolved reference: `$<aa>[sym]'
-test.y:37.8-11: unresolved reference: `$sym'
-test.y:40.8-15: unresolved reference: `$<aa>sym'
-test.y:43.8-19: unresolved reference: `$[sym-field]'
-test.y:46.8-23: unresolved reference: `$<aa>[sym-field]'
-test.y:49.8-11: unresolved reference: `$sym'
-test.y:52.8-15: unresolved reference: `$<aa>sym'
-test.y:55.8-13: unresolved reference: `$[sym]'
-test.y:57.8-17: unresolved reference: `$<aa>[sym]'
+[[test.y:13.8-17: invalid reference: `$sym.field'
+test.y:12.1-13.21: symbol not found in production: sym
+test.y:16.8-21: invalid reference: `$<aa>sym.field'
+test.y:15.1-16.25: symbol not found in production: sym
+test.y:19.8-19: invalid reference: `$[sym.field]'
+test.y:18.1-19.23: symbol not found in production: sym.field
+test.y:22.8-23: invalid reference: `$<aa>[sym.field]'
+test.y:21.1-22.27: symbol not found in production: sym.field
+test.y:25.8-11: invalid reference: `$sym'
+test.y:24.1-25.15: symbol not found in production: sym
+test.y:28.8-15: invalid reference: `$<aa>sym'
+test.y:27.1-28.19: symbol not found in production: sym
+test.y:31.8-13: invalid reference: `$[sym]'
+test.y:30.1-33.21: symbol not found in production before $3: sym
+test.y:33.8-17: invalid reference: `$<aa>[sym]'
+test.y:30.1-33.21: symbol not found in production: sym
+test.y:37.8-17: invalid reference: `$sym-field'
+test.y:36.1-37.21: symbol not found in production: sym
+test.y:40.8-21: invalid reference: `$<aa>sym-field'
+test.y:39.1-40.25: symbol not found in production: sym
+test.y:43.8-19: invalid reference: `$[sym-field]'
+test.y:42.1-43.23: symbol not found in production: sym-field
+test.y:46.8-23: invalid reference: `$<aa>[sym-field]'
+test.y:45.1-46.27: symbol not found in production: sym-field
+test.y:49.8-11: invalid reference: `$sym'
+test.y:48.1-49.15: symbol not found in production: sym
+test.y:52.8-15: invalid reference: `$<aa>sym'
+test.y:51.1-52.19: symbol not found in production: sym
+test.y:55.8-13: invalid reference: `$[sym]'
+test.y:54.1-57.21: symbol not found in production before $3: sym
+test.y:57.8-17: invalid reference: `$<aa>[sym]'
+test.y:54.1-57.21: symbol not found in production: sym