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

                                    








                                                                                 
package value_class_override_no_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 = ()
}