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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java

Issue 14861012: Report CTEC.CONST_WITH_NON_CONSTANT_ARGUMENT (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
index 5b5d69bd38db1533fd150b1a952d8260f092800c..7279d5f2103a410982a39810a3a4eaceb469c6b2 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
@@ -260,6 +260,17 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
+ public void test_constWithNonConstantArgument_literals() throws Exception {
+ Source source = addSource(createSource(//
+ "class A {",
+ " const A(a, b, c, d) {};",
+ "}",
+ "f() { return const A(true, 0, 1.0, '2'); }"));
+ resolve(source);
+ assertNoErrors();
+ verify(source);
+ }
+
public void test_constWithUndefinedConstructor() throws Exception {
Source source = addSource(createSource(//
"class A {",

Powered by Google App Engine
This is Rietveld 408576698