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

Unified Diff: tests/language/compile_time_constant_k_test.dart

Issue 158733003: Fix language tests wrt. warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/language/compile_time_constant_k_test.dart
diff --git a/tests/language/compile_time_constant_k_test.dart b/tests/language/compile_time_constant_k_test.dart
index f4260a3e5b9ffbaeb32b3393c9120280fc4e83c8..158c14713338be76b9346780f10beef5dc79e270 100644
--- a/tests/language/compile_time_constant_k_test.dart
+++ b/tests/language/compile_time_constant_k_test.dart
@@ -4,11 +4,16 @@
import "package:expect/expect.dart";
-const x = const { 'a': 3, 'a': 4 };
-const y = const { 'a': 10, 'b': 11, 'a': 12, 'b': 13, 'a': 14 };
-const z = const { '__proto__': 496,
- '__proto__': 497,
- '__proto__': 498,
+const x = const {
+ 'a': 3, /// 01: static type warning
+ 'a': 4 };
+const y = const {
+ 'a': 10, 'b': 11, 'a': 12, /// 02: static type warning
+ 'b': 13, 'a': 14 };
+const z = const {
+ '__proto__': 496, /// 03: static type warning
+ '__proto__': 497, /// 03: continued
+ '__proto__': 498, /// 03: continued
'__proto__': 499 };
const x2 = const { 'a': 4 };

Powered by Google App Engine
This is Rietveld 408576698