Index: dart/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java |
=================================================================== |
--- dart/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java (revision 30037) |
+++ dart/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java (working copy) |
@@ -70,6 +70,19 @@ |
verify(source); |
} |
+ public void test_ambiguousExport_sameDeclaration() throws Exception { |
+ Source source = addSource(createSource(// |
+ "library L;", |
+ "export 'lib.dart';", |
+ "export 'lib.dart';")); |
+ addSource("/lib.dart", createSource(// |
+ "library lib;", |
+ "class N {}")); |
+ resolve(source); |
+ assertNoErrors(source); |
+ verify(source); |
+ } |
+ |
public void test_argumentDefinitionTestNonParameter_formalParameter() throws Exception { |
Source source = addSource(createSource(// |
"f(var v) {", |
@@ -3101,6 +3114,22 @@ |
verify(source); |
} |
+ public void test_typePromotion_conditional_issue14655() throws Exception { |
+ Source source = addSource(createSource(// |
+ "class A {}", |
+ "class B extends A {}", |
+ "class C extends B {", |
+ " mc() {}", |
+ "}", |
+ "print(_) {}", |
+ "main(A p) {", |
+ " (p is C) && (print(() => p) && (p is B)) ? p.mc() : p = null;", |
+ "}")); |
+ resolve(source); |
+ assertNoErrors(source); |
+ verify(source); |
+ } |
+ |
public void test_typePromotion_conditional_useInThen() throws Exception { |
Source source = addSource(createSource(// |
"main(Object p) {", |