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

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

Issue 64033002: Version 0.8.10.8 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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: 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) {",

Powered by Google App Engine
This is Rietveld 408576698