diff options
author | Paul Phillips <paulp@improving.org> | 2012-10-08 07:28:35 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-10-08 07:28:35 -0700 |
commit | 7359c79cb1e29158e2e1f992c6359d3e2244702e (patch) | |
tree | 7b7708ec1fe7ce6374972c1bec47b31476cd6a85 /test/pending/run/t5882.scala | |
parent | 5b9af1b9ff327e8efa2c8b6e8b9ed8d3cdf2598e (diff) | |
parent | 1393baf83bc284e0e2360f2fdc79cc7e400d2320 (diff) | |
download | scala-7359c79cb1e29158e2e1f992c6359d3e2244702e.tar.gz scala-7359c79cb1e29158e2e1f992c6359d3e2244702e.tar.bz2 scala-7359c79cb1e29158e2e1f992c6359d3e2244702e.zip |
Merge pull request #1462 from gkossakowski/2.10.x
Merge remote-tracking branch 'scala/2.10.0-wip' into 2.10.x
Diffstat (limited to 'test/pending/run/t5882.scala')
-rw-r--r-- | test/pending/run/t5882.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pending/run/t5882.scala b/test/pending/run/t5882.scala new file mode 100644 index 0000000000..47996d3068 --- /dev/null +++ b/test/pending/run/t5882.scala @@ -0,0 +1,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") +} |