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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.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/InterfaceTypeImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java
index c582d6f93a43de58665c3f9b6827855ded2de9f5..56155b1f1d4f188fdbf6e82300f0e36371f6f325 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/type/InterfaceTypeImpl.java
@@ -696,7 +696,7 @@ public class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
if (type == DynamicTypeImpl.getInstance()) {
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