Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1286)

Unified Diff: tests/compiler/dart2js/mock_libraries.dart

Issue 677663002: Support constructor invocation in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add comment. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_builder_visitor.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mock_libraries.dart
diff --git a/tests/compiler/dart2js/mock_libraries.dart b/tests/compiler/dart2js/mock_libraries.dart
index 62f6d988ecd9e3494bdc534e55a4e0d2f7e792a1..d1d9ae2fb53bfa4a6002acaa8614e1e93ba4e98e 100644
--- a/tests/compiler/dart2js/mock_libraries.dart
+++ b/tests/compiler/dart2js/mock_libraries.dart
@@ -28,7 +28,12 @@ const Map<String, String> DEFAULT_CORE_LIBRARY = const <String, String>{
DateTime(year);
DateTime.utc(year);
}''',
- 'deprecated': 'const deprecated = 0;',
+ 'Deprecated': r'''
+ class Deprecated extends Object {
+ final String expires;
+ const Deprecated(this.expires);
+ }''',
+ 'deprecated': 'const Object deprecated = const Deprecated("next release");',
'double': r'''
abstract class double extends num {
static var NAN = 0;
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_builder_visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698