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

Unified Diff: tests/compiler/dart2js/serialization/test_data.dart

Issue 2018523002: Use correct type on evaluated literal symbols. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: tests/compiler/dart2js/serialization/test_data.dart
diff --git a/tests/compiler/dart2js/serialization/test_data.dart b/tests/compiler/dart2js/serialization/test_data.dart
index 96efc314d69b20f952938857e13e33e98aeb1229..252e6653fc791d7233bafbee988d20f670b3af5a 100644
--- a/tests/compiler/dart2js/serialization/test_data.dart
+++ b/tests/compiler/dart2js/serialization/test_data.dart
@@ -316,6 +316,17 @@ main() {}
''',
},
expectedWarningCount: 1),
+
+ const Test('Serialized symbol literal', const {
+ 'main.dart': '''
+import 'lib.dart';
+main() => m();
+''',
+ }, preserializedSourceFiles: const {
+ 'lib.dart': '''
+m() => print(#main);
+''',
+ }),
];
class Test {

Powered by Google App Engine
This is Rietveld 408576698