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

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

Issue 2099703002: Support malformed types (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 | « pkg/compiler/lib/src/serialization/type_serialization.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/serialization/test_data.dart
diff --git a/tests/compiler/dart2js/serialization/test_data.dart b/tests/compiler/dart2js/serialization/test_data.dart
index 950a211e68ada27a20222dedf1b0402ffde3f5b2..562b21d7cf1f3cd0ee213eac2d545aeb7eaf7e6e 100644
--- a/tests/compiler/dart2js/serialization/test_data.dart
+++ b/tests/compiler/dart2js/serialization/test_data.dart
@@ -402,6 +402,20 @@ class A {
}
''',
}),
+
+ const Test('Malformed types', const {
+ 'main.dart': '''
+import 'a.dart';
+
+main() {
+ m();
+}
+''',
+ }, preserializedSourceFiles: const {
+ 'a.dart': '''
+Unresolved m() {}
+''',
+ }),
];
class Test {
« no previous file with comments | « pkg/compiler/lib/src/serialization/type_serialization.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698