From 5b2990c5119ae58d2c9d90d6b4822d906559aeef Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Tue, 18 Dec 2012 14:50:55 +0100 Subject: SI-6745 Fix lookup We should only consult the decls of the enclosing class. Members of the self type, enclosing scopes, or imports should not be considered. --- test/files/pos/t6745.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/files/pos/t6745.scala (limited to 'test/files/pos/t6745.scala') diff --git a/test/files/pos/t6745.scala b/test/files/pos/t6745.scala new file mode 100644 index 0000000000..2ab8e6d39a --- /dev/null +++ b/test/files/pos/t6745.scala @@ -0,0 +1,4 @@ +class Bar(val i: Int) { + self: Any with AnyRef => + def this() = this(0) +} -- cgit v1.2.3