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.04k stars 1.55k forks source link

extension type auto import #55443

Open cedvdb opened 4 months ago

cedvdb commented 4 months ago

Related https://github.com/dart-lang/sdk/issues/38894

extension type UserId(String _value) implements String {}

I'd expect the above to be discoverable and not have to manually type the import each time.

lrhn commented 4 months ago

It should be as discoverable as a class. If it isn't, that is probably a mistake.