summaryrefslogtreecommitdiff
path: root/test/files/neg/t9045.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t9045.check')
-rw-r--r--test/files/neg/t9045.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t9045.check b/test/files/neg/t9045.check
new file mode 100644
index 0000000000..07d0e2dd74
--- /dev/null
+++ b/test/files/neg/t9045.check
@@ -0,0 +1,7 @@
+t9045.scala:3: error: constructor invokes itself
+ def this(axes: Array[Int]) = this(axes)
+ ^
+t9045.scala:6: error: called constructor's definition must precede calling constructor's definition
+ def this(d: Double) = this(d.toLong)
+ ^
+two errors found