Files
kotlin-fork/idea/testData/checker/Constructors.kt
T
Evgeny Gerashchenko 897854b3dc KT-6671 Report unused constructor parameters
#KT-6671 fixed
2015-01-27 22:38:27 +03:00

40 lines
578 B
Kotlin
Vendored

open class NoC
class NoC1 : NoC()
class WithC0() : NoC()
open class WithC1() : NoC()
class NoC2 : <error>WithC1</error>
class NoC3 : WithC1()
class WithC2() : <error>WithC1</error>
class NoPC {
}
class WithPC0() {
}
class WithPC1(<warning>a</warning> : Int) {
}
class Foo() : <error>WithPC0</error>(), <error>this</error>() {
}
class WithCPI_Dup(<warning>x</warning> : Int) {
<error>var x : Int</error>
}
class WithCPI(x : Int) {
val a = 1
val b : Int = $a
val xy : Int = x
}
class NoCPI {
val a = 1
var ab = <error>1</error>
get() = 1
set(v) {}
}