diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-05-16 04:54:51 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-05-16 04:54:51 -0700 |
commit | 9fe251e16b93d4bdc8a496f3edce90ef2e207ee8 (patch) | |
tree | 84fd85c9af088ea832ae68a7443083e868c24acf /test | |
parent | 8a42d535dbef45bc18cf4232912842dddd85d1e4 (diff) | |
parent | 7d79c4460814c9f8997de0fa1d756a734fb8a3d3 (diff) | |
download | scala-9fe251e16b93d4bdc8a496f3edce90ef2e207ee8.tar.gz scala-9fe251e16b93d4bdc8a496f3edce90ef2e207ee8.tar.bz2 scala-9fe251e16b93d4bdc8a496f3edce90ef2e207ee8.zip |
Merge pull request #558 from lrytz/wip/t5259
Fix SI-5259
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t5259.scala | 21 |
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)) + } +} |