aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/saito.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/saito.check')
-rw-r--r--tests/untried/neg/saito.check4
1 files changed, 4 insertions, 0 deletions
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