From e7feeaafe6ba83171714ca78b06afabb9320d20d Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Mon, 25 Jun 2012 09:55:31 +0200 Subject: Minor followup on SI-4842: remove awkward condition. Review by @retronym. --- test/files/neg/t4842.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/neg/t4842.scala (limited to 'test/files/neg/t4842.scala') diff --git a/test/files/neg/t4842.scala b/test/files/neg/t4842.scala new file mode 100644 index 0000000000..c6244efda7 --- /dev/null +++ b/test/files/neg/t4842.scala @@ -0,0 +1,7 @@ +class Foo (x: AnyRef) { + def this(x: Int) = this(new { println(Foo.this)}) // error +} + +class TypeArg[X](val x: X)(a: AnyRef) { + def this() = { this(???)(new { println(TypeArg.this.x) } ); println("next") } // error +} -- cgit v1.2.3