summaryrefslogtreecommitdiff
path: root/test/pending/run/t5882.scala
blob: 47996d306853e242c834cd1341e63e3e09619b46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SIP-15 was revised to allow nested classes in value classes.
// This test checks that their basic functionality.

class NodeOps(val n: Any) extends AnyVal { self =>
  class Foo() { def show = self.show(n) }
  def show(x: Any) = x.toString
}


object Test extends App {

  val n = new NodeOps("abc")
  assert(new n.Foo().show == "abc")
}