Files
sdk/pkg/dev_compiler/test/codegen/es6_modules.dart
T
Olivier Chafik adf6842f6c Initial --modules=es6 support
Known issues:
- Import syntax: using 'dart/core' right now, but should be
'./dart/core' or something else?
- _jsModuleValue not supported in es6 output yet (how is it meant to be
used?)

BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1612083002 .
2016-01-24 18:09:59 +00:00

26 lines
365 B
Dart

library test;
import 'dart:js';
typedef void Callback({int i});
class A {}
class _A {}
class B<T> {}
class _B<T> {}
f() {}
_f() {}
const String constant = "abc";
final String finalConstant = "abc";
final String lazy = (() {
print('lazy');
return "abc";
})();
String mutable = "abc";
String lazyMutable = (() {
print('lazyMutable');
return "abc";
})();