diff options
Diffstat (limited to 'sources/scalac/typechecker/Infer.java')
-rw-r--r-- | sources/scalac/typechecker/Infer.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sources/scalac/typechecker/Infer.java b/sources/scalac/typechecker/Infer.java index 05d8916d66..befd1d151c 100644 --- a/sources/scalac/typechecker/Infer.java +++ b/sources/scalac/typechecker/Infer.java @@ -926,14 +926,7 @@ public class Infer implements Modifiers, Kinds { if (i == alts.length) throw new Type.Error("missing arguments for " + alts[0]); } - /* - // then catch the case of a single alternative. - if (alts.length == 1) { - tree.setSymbol(alts[0]).setType(alttypes[0]); - return; - } - */ - // finally, do the normal case. + // second, do the normal case. int best = -1; for (int i = 0; i < alttypes.length; i++) { if (isCompatible(alttypes[i], pt) && |