summaryrefslogtreecommitdiff
path: root/test/files/pos/t5259.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t5259.scala')
-rw-r--r--test/files/pos/t5259.scala21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/files/pos/t5259.scala b/test/files/pos/t5259.scala
new file mode 100644
index 0000000000..d33c4dd6a7
--- /dev/null
+++ b/test/files/pos/t5259.scala
@@ -0,0 +1,21 @@
+class A[T]
+class B {
+ def m(a: A[this.type] = new A[this.type]) { }
+}
+
+class C {
+ def foo(a: Int, b: Int = 0) = 0
+ def foo() = 0
+}
+
+object Test {
+ def newB = new B
+ newB.m()
+
+ val stableB = new B
+ stableB.m()
+
+ def f {
+ println((new C).foo(0))
+ }
+}