[FIR] Complete WRONG_SETTER_TYPE_PARAMETER checker
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5472199bb1
commit
9e7f6332d1
@@ -0,0 +1,13 @@
|
||||
FILE: settersGetters.kt
|
||||
public final class SomeClass : R|kotlin/Any| {
|
||||
public constructor(): R|SomeClass| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final var foo: R|kotlin/Int| = Int(0)
|
||||
public get(): R|kotlin/Int|
|
||||
public set(value: R|kotlin/String|): R|kotlin/Unit| {
|
||||
this@R|/SomeClass|.F|/SomeClass.foo| = R|<local>/value|
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class SomeClass {
|
||||
|
||||
var foo: Int = 0
|
||||
set(value: <!WRONG_SETTER_PARAMETER_TYPE!>String<!>){
|
||||
field = value
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user