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

Unified Diff: tests/language/src/WrongNumberTypeArgumentsTest.dart

Issue 8384012: Make some ErrorCode-s compile-time errors and some just type warnings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for comments Created 9 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
Index: tests/language/src/WrongNumberTypeArgumentsTest.dart
diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ArrayLiteralNegativeTest.dart b/tests/language/src/WrongNumberTypeArgumentsTest.dart
similarity index 69%
rename from compiler/javatests/com/google/dart/compiler/resolver/ArrayLiteralNegativeTest.dart
rename to tests/language/src/WrongNumberTypeArgumentsTest.dart
index bd2651dd11f596cc849966baa0106c677b73249f..d2d711e7a5ff080de9f6976e3d41d979e14813ab 100644
--- a/compiler/javatests/com/google/dart/compiler/resolver/ArrayLiteralNegativeTest.dart
+++ b/tests/language/src/WrongNumberTypeArgumentsTest.dart
@@ -2,8 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class A {
- main() {
- List<int, int> ints = [1];
- }
+Map<String> foo; // Static type warning: Map takes 2 type arguments.
+
+main() {
+ foo = null;
}

Powered by Google App Engine
This is Rietveld 408576698