summaryrefslogtreecommitdiff
path: root/test/files/neg/saito.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/saito.check')
-rw-r--r--test/files/neg/saito.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/saito.check b/test/files/neg/saito.check
new file mode 100644
index 0000000000..142ed903cc
--- /dev/null
+++ b/test/files/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 B
+ val a: A = new A; // should not be allowed
+ ^
+one error found