malloy icon indicating copy to clipboard operation
malloy copied to clipboard

`extend:` in `nest:` generates a nasty error

Open christopherswenson opened this issue 4 months ago • 0 comments

Repro test:

test('works in nest', () => {
  expect(
    'run: a -> { nest: n is { extend: { dimension: x is 1 }; group_by: x } }'
  ).toTranslate();
});

This should probably give an error like extend: is not allowed inside nest: rather than the crazy nextStructDef error that happens today.

christopherswenson avatar Oct 01 '24 17:10 christopherswenson