False positive "unused constructor" for local class

#KT-30637 Fixed
This commit is contained in:
Dmitry Gridin
2019-03-27 13:32:47 +07:00
parent 0b94aa4be2
commit 5802928e52
6 changed files with 39 additions and 1 deletions
@@ -0,0 +1,8 @@
// "Safe delete constructor" "true"
fun main() {
class LocalClass(val number: Int) {
<caret>constructor(s: String) : this(s.toInt())
}
val l = LocalClass(42)
}