diff options
Diffstat (limited to 'sources/scalac/transformer/matching')
-rw-r--r-- | sources/scalac/transformer/matching/PatternMatcher.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/transformer/matching/PatternMatcher.java b/sources/scalac/transformer/matching/PatternMatcher.java index 5f074c05f7..3ece11b531 100644 --- a/sources/scalac/transformer/matching/PatternMatcher.java +++ b/sources/scalac/transformer/matching/PatternMatcher.java @@ -834,7 +834,7 @@ public class PatternMatcher extends PatternTool { } protected boolean optimize(Type selType, PatternNode alternatives) { - if (!optimize || !selType.isSubType(defs.OBJECT_TYPE)) + if (!optimize || !selType.isSubType(defs.OBJECT_TYPE())) return false; int cases = 0; while (alternatives != null) { |