From 5d58eac358485e1031fc44fd9a94bd5fe77f0422 Mon Sep 17 00:00:00 2001 From: paltherr Date: Wed, 13 Aug 2003 11:05:11 +0000 Subject: - Removed now useless switch --- sources/scalac/transformer/LambdaLiftPhase.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'sources/scalac/transformer/LambdaLiftPhase.java') diff --git a/sources/scalac/transformer/LambdaLiftPhase.java b/sources/scalac/transformer/LambdaLiftPhase.java index f6f986e626..c5b396351e 100644 --- a/sources/scalac/transformer/LambdaLiftPhase.java +++ b/sources/scalac/transformer/LambdaLiftPhase.java @@ -98,16 +98,7 @@ public class LambdaLiftPhase extends PhaseDescriptor implements Kinds, Modifiers case ThisType(_): if (sym.kind == CLASS && sym.primaryConstructor().isUpdated(nextPhase)) { - Type constrtype = sym.primaryConstructor().infoAt(nextPhase); - Symbol[] tparams; - switch (constrtype) { - case OverloadedType(_, _): - tparams = Symbol.EMPTY_ARRAY; - break; - default: - tparams = constrtype.typeParams(); - break; - } + Symbol[] tparams = sym.typeParams(); int i = tparams.length; while (i > 0 && (tparams[i-1].flags & SYNTHETIC) != 0) i--; -- cgit v1.2.3