aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t3186.scala
blob: e170a4d503ee38f2762cd4cf4b2a26276d892f27 (plain) (tree)
1
2
3
4
5
6
7






                                                                              
object Dist1 extends Enumeration { val Mile, Foot, Inch = Value }

object Dist2 extends Enumeration { val Kilometer, Millimeter, Parsec = Value }

object Test extends dotty.runtime.LegacyApp {
  println(Dist1.Mile == Dist2.Kilometer)
}