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.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/sources/scalac/transformer/LambdaLiftPhase.java b/sources/scalac/transformer/LambdaLiftPhase.java
index c4834e79cb..efe623a727 100644
--- a/sources/scalac/transformer/LambdaLiftPhase.java
+++ b/sources/scalac/transformer/LambdaLiftPhase.java
@@ -154,9 +154,7 @@ public class LambdaLiftPhase extends Phase implements Kinds, Modifiers {
/** The type scala.Ref[tp]
*/
Type refType(Type tp) {
- Symbol refClass = global.definitions.getClass(Names.scala_Ref);
- assert refClass.kind == Kinds.CLASS;
- return Type.TypeRef(global.definitions.SCALA_TYPE, refClass, new Type[]{tp});
+ return Type.appliedType(global.definitions.REF_TYPE, new Type[]{tp});
}
public Checker[] postCheckers(Global global) {