dart-archive / dev_compiler

DEPRECATED - Moved to main SDK
https://github.com/dart-lang/sdk/tree/master/pkg/dev_compiler
Other
133 stars 27 forks source link

interfaces implemented via noSuchMethod #603

Closed jmesserly closed 8 years ago

jmesserly commented 8 years ago

This is supported by Strong mode, but not by DDC yet.

This would help Mock objects used in tests (e.g. mockito)

Here's a bug with context: https://github.com/dart-lang/sdk/issues/26863

Here's the desugaring we should do in the compiler: https://github.com/dart-lang/sdk/issues/26863#issuecomment-232129604 (we don't need to generate the Dart code for those synthetic methods, we could go straight to JS. Whatever is easier)

jmesserly commented 8 years ago

FYI to @leafpetersen ... tentatively assigning myself :)

jmesserly commented 8 years ago

https://codereview.chromium.org/2158173003/