@malloydata/malloy 0.0.109-dev231130215708 → 0.0.109-dev231201181643

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -246,6 +246,20 @@ describe('document annotation', () => {
246
246
  expect(m).toTranslate();
247
247
  expect(m.translator.compilerFlags.has('flagThis')).toBeTruthy();
248
248
  });
249
+ test('extended models inherit model flags', () => {
250
+ var _a, _b, _c, _d;
251
+ const first = (0, test_translator_1.model) `## from=1\n`;
252
+ expect(first).toTranslate();
253
+ const firstModel = (_b = (_a = first.translator.translate()) === null || _a === void 0 ? void 0 : _a.translated) === null || _b === void 0 ? void 0 : _b.modelDef;
254
+ expect(firstModel).toBeDefined();
255
+ const second = (0, test_translator_1.model) `## from=2\n`;
256
+ second.translator.internalModel = firstModel;
257
+ const secondModel = (_d = (_c = second.translator.translate()) === null || _c === void 0 ? void 0 : _c.translated) === null || _d === void 0 ? void 0 : _d.modelDef;
258
+ expect(secondModel === null || secondModel === void 0 ? void 0 : secondModel.annotation).matchesAnnotation({
259
+ inherits: { notes: ['## from=1\n'] },
260
+ notes: ['## from=2\n'],
261
+ });
262
+ });
249
263
  });
250
264
  describe('source definition annotations', () => {
251
265
  test('turtle block annotation', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.109-dev231130215708",
3
+ "version": "0.0.109-dev231201181643",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",