summaryrefslogtreecommitdiff
path: root/sources/scalac/transformer/LambdaLiftPhase.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/transformer/LambdaLiftPhase.java')
-rw-r--r--sources/scalac/transformer/LambdaLiftPhase.java11
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--;