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/constrs.check | |
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/constrs.check')
-rw-r--r-- | test/files/neg/constrs.check | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/constrs.check b/test/files/neg/constrs.check index 4f4a12bc13..8a5bd97ae3 100644 --- a/test/files/neg/constrs.check +++ b/test/files/neg/constrs.check @@ -7,7 +7,7 @@ constrs.scala:6: error: value u is not a member of object test constrs.scala:10: error: called constructor's definition must precede calling constructor's definition def this() = this("abc") ^ -constrs.scala:12: error: called constructor's definition must precede calling constructor's definition +constrs.scala:12: error: constructor invokes itself def this(x: Boolean) = this(x) ^ constrs.scala:16: error: type mismatch; |