diff options
author | Paul Phillips <paulp@improving.org> | 2011-11-10 21:04:36 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-11-10 21:04:36 +0000 |
commit | 9f9932bd20250d243d2df04d8b42417a896dc987 (patch) | |
tree | ddd11bf872dfc29907eaa57c71bfe5debbc6e169 /test | |
parent | a38f03ba966907c2996944bf1e82f51760c661d9 (diff) | |
download | scala-9f9932bd20250d243d2df04d8b42417a896dc987.tar.gz scala-9f9932bd20250d243d2df04d8b42417a896dc987.tar.bz2 scala-9f9932bd20250d243d2df04d8b42417a896dc987.zip |
Fix for regression in overriding with defaults.
I should know better than to behave as if usable inferences can be drawn
from a comment like "SYNTHETIC because of DEVIRTUALIZE". Maybe it was
even true when it was written, but no more. Closes SI-5178, no review.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t5178.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t5178.scala b/test/files/pos/t5178.scala new file mode 100644 index 0000000000..26c008d66f --- /dev/null +++ b/test/files/pos/t5178.scala @@ -0,0 +1,11 @@ +abstract class FileOps { + def withLock[R](start: Long = 0): Option[R] +} + +trait DefaultFileOps { + self: DefaultPath => + + override def withLock[R](start: Long = 5): Option[R] = None +} + +class DefaultPath extends FileOps with DefaultFileOps { } |