From 9ef5f6817688f814a3450126aa7383b0928e80a0 Mon Sep 17 00:00:00 2001 From: Samuel Gruetter Date: Wed, 12 Mar 2014 22:44:33 +0100 Subject: add tests from scala/test/files/{pos,neg} with explicit Unit return type --- tests/untried/neg/saito.check | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/untried/neg/saito.check (limited to 'tests/untried/neg/saito.check') diff --git a/tests/untried/neg/saito.check b/tests/untried/neg/saito.check new file mode 100644 index 000000000..061a45b76 --- /dev/null +++ b/tests/untried/neg/saito.check @@ -0,0 +1,4 @@ +saito.scala:10: error: class A cannot be instantiated because it does not conform to its self-type A with B + val a: A = new A; // should not be allowed + ^ +one error found -- cgit v1.2.3