Skip to content

Commit 59c5391

Browse files
nicolasstuckiKordyjan
authored andcommitted
Fix context bound application in enum desugaring
1 parent 04dc823 commit 59c5391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/DesugarEnums.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ object DesugarEnums {
9999
val clazzOf = TypeApply(ref(defn.Predef_classOf.termRef), tpt :: Nil)
100100
val ctag = Apply(TypeApply(ref(defn.ClassTagModule_apply.termRef), tpt :: Nil), clazzOf :: Nil)
101101
val apply = Select(ref(defn.ArrayModule.termRef), nme.apply)
102-
Apply(Apply(TypeApply(apply, tpt :: Nil), values), ctag :: Nil)
102+
Apply(Apply(TypeApply(apply, tpt :: Nil), values), ctag :: Nil).setApplyKind(ApplyKind.Using)
103103

104104
/** The following lists of definitions for an enum type E and known value cases e_0, ..., e_n:
105105
*

0 commit comments

Comments
 (0)