aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/pos_valueclasses/value-class-override-spec.scala
blob: c315be8d0494b23acab67f509be3ffa44eb47dd2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                 








                                                                                 
package value_class_override_spec

// There are two versions of this tests: one with and one without specialization.
// The bug was only exposed *without* specialization.
trait T extends Any {
  def x: Any
}

final class StringOps(val repr0: String) extends AnyVal with T {
  def x = ()
}