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

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

Issue 2129183002: Support checked mode (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « tests/compiler/dart2js/serialization/compilation_test_helper.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 ba39aabd40cd9a289effc9fac4e335af4cf313ee..ba29340091293597b2be8fe51aac49f36854df94 100644
--- a/tests/compiler/dart2js/serialization/test_data.dart
+++ b/tests/compiler/dart2js/serialization/test_data.dart
@@ -576,6 +576,24 @@ class C {
test() => new C() == null;
''',
}),
+
+ const Test('Checked setter', const {
+ 'main.dart': '''
+import 'a.dart';
+
+main() {
+ test();
+}
+''',
+ }, preserializedSourceFiles: const {
+ 'a.dart': '''
+class C {
+ set foo(int i) {}
+}
+
+test() => new C().foo = 0;
+''',
+ }, checkedMode: true),
];
class Test {
@@ -587,6 +605,7 @@ class Test {
final int expectedWarningCount;
final int expectedHintCount;
final int expectedInfoCount;
+ final bool checkedMode;
const Test(
this.name,
@@ -596,5 +615,6 @@ class Test {
this.expectedErrorCount: 0,
this.expectedWarningCount: 0,
this.expectedHintCount: 0,
- this.expectedInfoCount: 0});
+ this.expectedInfoCount: 0,
+ this.checkedMode: false});
}
« no previous file with comments | « tests/compiler/dart2js/serialization/compilation_test_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698