aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t7019.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t7019.scala')
-rw-r--r--tests/pending/run/t7019.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pending/run/t7019.scala b/tests/pending/run/t7019.scala
new file mode 100644
index 000000000..5dcc09d2b
--- /dev/null
+++ b/tests/pending/run/t7019.scala
@@ -0,0 +1,10 @@
+final class Foo(val i: Int) extends AnyVal {
+ def foo() = go(i)
+ private[this] def go(i: Int) = i * 2
+}
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ assert(new Foo(1).foo() == 2)
+ }
+}