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

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

Issue 18010002: Report errors for invalid annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java
index c55c2813ed43f4619097b233e7aaa679b4a6aee8..a9767c4365a5717e385608e0efaa6313ff45dc21 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/StaticWarningCodeTest.java
@@ -262,7 +262,7 @@ public class StaticWarningCodeTest extends ResolverTestCase {
public void test_argumentTypeNotAssignable_annotation_namedConstructor() throws Exception {
Source source = addSource(createSource(//
"class A {",
- " A.fromInt(int p) {}",
+ " const A.fromInt(int p);",
"}",
"@A.fromInt('0')",
"main() {",
@@ -275,7 +275,7 @@ public class StaticWarningCodeTest extends ResolverTestCase {
public void test_argumentTypeNotAssignable_annotation_unnamedConstructor() throws Exception {
Source source = addSource(createSource(//
"class A {",
- " A(int p) {}",
+ " const A(int p);",
"}",
"@A('0')",
"main() {",

Powered by Google App Engine
This is Rietveld 408576698