diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-06-28 12:09:21 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-06-28 14:23:15 -0700 |
commit | e320a920d4c32752157cf73be5a5fbbd3b9cc6e7 (patch) | |
tree | 04d2e78365d257c055c56ea93aaf88f9c0b9f3f9 /test/files/run | |
parent | 397a057fd242833098562e48f12e11621b4ab7ae (diff) | |
parent | d22e8d282c538a711f6fdd33793c06cd7676959d (diff) | |
download | scala-e320a920d4c32752157cf73be5a5fbbd3b9cc6e7.tar.gz scala-e320a920d4c32752157cf73be5a5fbbd3b9cc6e7.tar.bz2 scala-e320a920d4c32752157cf73be5a5fbbd3b9cc6e7.zip |
Merge 2.10.x into master
Conflicts:
src/compiler/scala/tools/nsc/typechecker/Duplicators.scala
src/library/scala/concurrent/Future.scala
test/files/jvm/scala-concurrent-tck.scala
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t7571.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t7571.scala b/test/files/run/t7571.scala new file mode 100644 index 0000000000..00b9695168 --- /dev/null +++ b/test/files/run/t7571.scala @@ -0,0 +1,12 @@ +class Foo(val a: Int) extends AnyVal { + def foo = { {case x => x + a}: PartialFunction[Int, Int]} + + def bar = (new {}).toString +} + +object Test extends App { + val x = new Foo(1).foo.apply(2) + assert(x == 3, x) + val s = new Foo(1).bar + assert(s.nonEmpty, s) +} |