From 9f9932bd20250d243d2df04d8b42417a896dc987 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 10 Nov 2011 21:04:36 +0000 Subject: 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. --- test/files/pos/t5178.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/pos/t5178.scala (limited to 'test/files/pos/t5178.scala') 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 { } -- cgit v1.2.3