From c193d5918c84d7fc85371be67e37ef0addc65077 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 16 Feb 2009 16:28:51 +0000 Subject: Fix and test case for #1623. --- test/files/neg/bug1623.check | 4 ++++ test/files/neg/bug1623.scala | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/files/neg/bug1623.check create mode 100644 test/files/neg/bug1623.scala (limited to 'test/files/neg') diff --git a/test/files/neg/bug1623.check b/test/files/neg/bug1623.check new file mode 100644 index 0000000000..cfc2b533d4 --- /dev/null +++ b/test/files/neg/bug1623.check @@ -0,0 +1,4 @@ +bug1623.scala:11: error: class BImpl cannot be instantiated because it does not conform to its self-type test.BImpl with test.A + val b = new BImpl + ^ +one error found diff --git a/test/files/neg/bug1623.scala b/test/files/neg/bug1623.scala new file mode 100644 index 0000000000..d98670a681 --- /dev/null +++ b/test/files/neg/bug1623.scala @@ -0,0 +1,12 @@ +package test + +trait A +trait B + +class BImpl extends B { + this: A => +} + +object Test2 extends Application { + val b = new BImpl +} \ No newline at end of file -- cgit v1.2.3