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

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

Issue 22871003: Issue 11892. It is compile-time error when unqualified invocation with unresolved identifier. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 594d170e44aa2b00ae91f0b78310156db5408c2b..585438b3282d059ef2093a024ff687ad23c24c48 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
@@ -15,7 +15,6 @@ package com.google.dart.engine.resolver;
import com.google.dart.engine.error.CompileTimeErrorCode;
import com.google.dart.engine.error.HintCode;
-import com.google.dart.engine.error.StaticTypeWarningCode;
import com.google.dart.engine.error.StaticWarningCode;
import com.google.dart.engine.source.Source;
@@ -188,21 +187,6 @@ public class StaticWarningCodeTest extends ResolverTestCase {
assertErrors(StaticWarningCode.AMBIGUOUS_IMPORT, CompileTimeErrorCode.EXTENDS_NON_CLASS);
}
- public void test_ambiguousImport_function() throws Exception {
- Source source = addSource(createSource(//
- "import 'lib1.dart';",
- "import 'lib2.dart';",
- "g() { return f(); }"));
- addSource("/lib1.dart", createSource(//
- "library lib1;",
- "f() {}"));
- addSource("/lib2.dart", createSource(//
- "library lib2;",
- "f() {}"));
- resolve(source);
- assertErrors(StaticWarningCode.AMBIGUOUS_IMPORT, StaticTypeWarningCode.UNDEFINED_FUNCTION);
- }
-
public void test_ambiguousImport_implements() throws Exception {
Source source = addSource(createSource(//
"import 'lib1.dart';",

Powered by Google App Engine
This is Rietveld 408576698