blob: e170a4d503ee38f2762cd4cf4b2a26276d892f27 (
plain) (
tree)
|
|
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)
}
|