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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.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/HintCodeTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java
index fe32ffd67cd764d0acd9fe424328e4a44aa6321b..eb42bc85f0709946ee68ffeeb2c9573b1c7564ef 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java
@@ -131,6 +131,7 @@ public class HintCodeTest extends ResolverTestCase {
}
public void test_argumentTypeNotAssignable_unionTypeMethodMerge() throws Exception {
+ enableUnionTypes(false);
Source source = addSource(createSource(//
"class A {",
" int m(int x) => 0;",
@@ -581,6 +582,7 @@ public class HintCodeTest extends ResolverTestCase {
}
public void test_deprecatedAnnotationUse_deprecatedMethodCalledOnUnionType() throws Exception {
+ enableUnionTypes(false);
Source source = addSource(createSource(//
"class A {",
" @deprecated f() => 0;",
@@ -1054,6 +1056,7 @@ public class HintCodeTest extends ResolverTestCase {
}
public void test_undefinedMethod_unionType_noSuchMethod() throws Exception {
+ enableUnionTypes(false);
Source source = addSource(createSource(//
"class A {",
" int m(int x) => 0;",

Powered by Google App Engine
This is Rietveld 408576698