FIR: fix WRONG_GETTER(SETTER)_RETURN_TYPE associated PSI types

This commit is contained in:
Mikhail Glukhikh
2021-05-07 16:39:02 +03:00
parent 0f9f63400e
commit 55104a594c
5 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ class A() {
field = value
}
val y: Int
get(): String = "s"
get(): <error descr="[WRONG_GETTER_RETURN_TYPE] Getter return type must be equal to the type of the property, i.e. 'kotlin/Int'">String</error> = "s"
val z: Int
get() {
return "s"
@@ -16,7 +16,7 @@ class A() {
field = v
}
val b: Int
get(): Any = "s"
get(): <error descr="[WRONG_GETTER_RETURN_TYPE] Getter return type must be equal to the type of the property, i.e. 'kotlin/Int'">Any</error> = "s"
val c: Int
get() {
return 1
@@ -26,7 +26,7 @@ class A() {
return field
}
val e = 1
get(): String {
get(): <error descr="[WRONG_GETTER_RETURN_TYPE] Getter return type must be equal to the type of the property, i.e. 'kotlin/Int'">String</error> {
return field
}