Skip to content

Commit

Permalink
Fix context bound application in enum desugaring
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki authored and odersky committed Jan 6, 2024
1 parent 697f107 commit 786852c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/ast/DesugarEnums.scala
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ object DesugarEnums {
val clazzOf = TypeApply(ref(defn.Predef_classOf.termRef), tpt :: Nil)
val ctag = Apply(TypeApply(ref(defn.ClassTagModule_apply.termRef), tpt :: Nil), clazzOf :: Nil)
val apply = Select(ref(defn.ArrayModule.termRef), nme.apply)
Apply(Apply(TypeApply(apply, tpt :: Nil), values), ctag :: Nil)
Apply(Apply(TypeApply(apply, tpt :: Nil), values), ctag :: Nil).setApplyKind(ApplyKind.Using)

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

0 comments on commit 786852c

Please sign in to comment.