diff options
author | paltherr <paltherr@epfl.ch> | 2003-08-13 11:05:11 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-08-13 11:05:11 +0000 |
commit | 5d58eac358485e1031fc44fd9a94bd5fe77f0422 (patch) | |
tree | 1f51f469f61fd60fe350db2144a3b1f7b3961730 /sources | |
parent | b56a6d699c9003e8412955fe16159351578cf92b (diff) | |
download | scala-5d58eac358485e1031fc44fd9a94bd5fe77f0422.tar.gz scala-5d58eac358485e1031fc44fd9a94bd5fe77f0422.tar.bz2 scala-5d58eac358485e1031fc44fd9a94bd5fe77f0422.zip |
- Removed now useless switch
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/transformer/LambdaLiftPhase.java | 11 |
1 files changed, 1 insertions, 10 deletions
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--; |