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

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

Issue 592923002: Put union types behind a flag. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make union-type options available in [AnalysisEngine]. Created 6 years, 3 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/TypePropagationTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/TypePropagationTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/TypePropagationTest.java
index 7b976ecd58ced3424717d53d186702b6af27dab4..b77b81106c865dfb4949b49cc4c6188bfe978979 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/TypePropagationTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/TypePropagationTest.java
@@ -47,6 +47,7 @@ import junit.framework.AssertionFailedError;
public class TypePropagationTest extends ResolverTestCase {
public void fail_issue20904BuggyTypePromotionAtIfJoin_2() throws Exception {
// https://code.google.com/p/dart/issues/detail?id=20904
+ enableUnionTypes(false);
String code = createSource(//
"f(var message) {",
" if (message is Function) {",
@@ -1181,6 +1182,7 @@ public class TypePropagationTest extends ResolverTestCase {
// This is tricky: the [break] jumps back above the [if], making
// it into a loop of sorts. The [if] type-propagation code assumes
// that [break] does not introduce a loop.
+ enableUnionTypes(false);
String code = createSource(
"f() {",
" var x = 0;",

Powered by Google App Engine
This is Rietveld 408576698