From 6379b70d952cf0eea96d205e14a291b441f9cd45 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Wed, 4 May 2016 12:44:40 -0700 Subject: SI-9045 Error on recursive ctor If the constructor invokes itself, say so. --- test/files/neg/t9045.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/neg/t9045.scala (limited to 'test/files/neg/t9045.scala') diff --git a/test/files/neg/t9045.scala b/test/files/neg/t9045.scala new file mode 100644 index 0000000000..e6710ab324 --- /dev/null +++ b/test/files/neg/t9045.scala @@ -0,0 +1,8 @@ + +case class AffineImageShape(axes: Seq[Int]) { + def this(axes: Array[Int]) = this(axes) +} +class X(i: Int) { + def this(d: Double) = this(d.toLong) + def this(n: Long) = this(n.toInt) +} -- cgit v1.2.3