Closed jmesserly closed 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)
FYI to @leafpetersen ... tentatively assigning myself :)
https://codereview.chromium.org/2158173003/
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)