diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-05-04 12:44:40 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-05-04 16:00:11 -0700 |
commit | 6379b70d952cf0eea96d205e14a291b441f9cd45 (patch) | |
tree | 5f26e590ef4a8dbd30519b8cf368b277a3c2bff8 /test/files/neg/t9045.scala | |
parent | f952a812340db7bc11f45b45f46e4b8ce7d6fb49 (diff) | |
download | scala-6379b70d952cf0eea96d205e14a291b441f9cd45.tar.gz scala-6379b70d952cf0eea96d205e14a291b441f9cd45.tar.bz2 scala-6379b70d952cf0eea96d205e14a291b441f9cd45.zip |
SI-9045 Error on recursive ctor
If the constructor invokes itself, say so.
Diffstat (limited to 'test/files/neg/t9045.scala')
-rw-r--r-- | test/files/neg/t9045.scala | 8 |
1 files changed, 8 insertions, 0 deletions
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) +} |