dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.25k stars 1.58k forks source link

[Augmentations] Extension type augmentation must omit representation variable #56375

Open sgrekhov opened 3 months ago

sgrekhov commented 3 months ago

Augmentations specification was recently updated and now contains the following statement.

The representation field clause must be present on the declaration which introduces the extension type, and must be omitted from all augmentations of the extension type.

But analyzer doesn't support extension types augmentations without representation field and produces SYNTACTIC_ERROR.MISSING_PRIMARY_CONSTRUCTOR. Please, implement this functionality.

pq commented 3 months ago

@scheglov