Skip to content

Commit

Permalink
isDerivedValueClass: try to avoid causing cyclic references
Browse files Browse the repository at this point in the history
This fixes the problem showcased in #412.
  • Loading branch information
smarter committed Mar 19, 2015
1 parent 318c685 commit a9fb3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotty/tools/dotc/transform/ValueClasses.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ object ValueClasses {

def isDerivedValueClass(d: SymDenotation)(implicit ctx: Context) =
d.isClass &&
d.derivesFrom(defn.AnyValClass) &&
d.derivesFrom(defn.AnyValClass)(ctx.withPhase(d.initial.validFor.phaseId)) &&
(d.symbol ne defn.AnyValClass) &&
!d.isPrimitiveValueClass

Expand Down

0 comments on commit a9fb3ba

Please sign in to comment.