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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/FunctionTypeImpl.java

Issue 599293002: Implement strict and non-strict union types behind flag [strictUnionTypes]. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address @brianwilkerson comments. 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/src/com/google/dart/engine/internal/type/FunctionTypeImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/FunctionTypeImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/FunctionTypeImpl.java
index 2ce36a3d4a499b491f3c9a2ef6d1b80c8c85e62c..74ecb5353a10915c32ba7586db8bcdf63ba8c5ab 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/FunctionTypeImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/FunctionTypeImpl.java
@@ -323,7 +323,7 @@ public class FunctionTypeImpl extends TypeImpl implements FunctionType {
} else if (this == type || type.isDynamic() || type.isDartCoreFunction() || type.isObject()) {
return true;
} else if ((type instanceof UnionType)) {
- return ((UnionTypeImpl) type).internalUnionTypeIsMoreSpecificThan(
+ return ((UnionTypeImpl) type).internalUnionTypeIsLessSpecificThan(
this,
withDynamic,
visitedTypePairs);

Powered by Google App Engine
This is Rietveld 408576698