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

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

Issue 17587006: Report CTEC.INSTANCE_MEMBER_ACCESS_FROM_STATIC (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 83f8eeebc82133cec1b8ef6ccac7e1e47947da33..396cc534499ddc789df29b693e69e144aa0c8c35 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
@@ -967,8 +967,7 @@ public class StaticWarningCodeTest extends ResolverTestCase {
public void test_instanceMethodNameCollidesWithSuperclassStatic_setter() throws Exception {
Source source = addSource(createSource(//
"class A {",
- " int i = 0;",
- " static set n(int x) {i = x;}",
+ " static set n(int x) {}",
"}",
"class B extends A {",
" void n() {}",
@@ -981,8 +980,7 @@ public class StaticWarningCodeTest extends ResolverTestCase {
public void test_instanceMethodNameCollidesWithSuperclassStatic_setter2() throws Exception {
Source source = addSource(createSource(//
"class A {",
- " int i = 0;",
- " static set n(int x) {i = x;}",
+ " static set n(int x) {}",
"}",
"class B extends A {",
"}",

Powered by Google App Engine
This is Rietveld 408576698