FIR builder: do not generate implicit types for getters
This commit is contained in:
@@ -122,7 +122,7 @@ class RawFirBuilder(val session: FirSession) {
|
|||||||
isGetter,
|
isGetter,
|
||||||
visibility,
|
visibility,
|
||||||
if (isGetter) {
|
if (isGetter) {
|
||||||
returnTypeReference.toFirOrImplicitType()
|
returnTypeReference?.convertSafe() ?: propertyType
|
||||||
} else {
|
} else {
|
||||||
returnTypeReference.toFirOrUnitType()
|
returnTypeReference.toFirOrUnitType()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ FILE: simpleClass.kt
|
|||||||
}
|
}
|
||||||
|
|
||||||
public? open? override property bar(var): Boolean
|
public? open? override property bar(var): Boolean
|
||||||
public? get(): <implicit> {
|
public? get(): Boolean {
|
||||||
STUB
|
STUB
|
||||||
}
|
}
|
||||||
public? set(value: Boolean): kotlin.Unit {
|
public? set(value: Boolean): kotlin.Unit {
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@ FILE: Annotations.kt
|
|||||||
}
|
}
|
||||||
|
|
||||||
public? open? override property v(val): R|kotlin/String|
|
public? open? override property v(val): R|kotlin/String|
|
||||||
@R|annotations/Simple|() public? get(): R|error: Not supported: FirImplicitTypeImpl| {
|
@R|annotations/Simple|() public? get(): R|kotlin/String| {
|
||||||
STUB
|
STUB
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ FILE: simpleClass.kt
|
|||||||
}
|
}
|
||||||
|
|
||||||
public? open? override property bar(var): R|kotlin/Boolean|
|
public? open? override property bar(var): R|kotlin/Boolean|
|
||||||
public? get(): R|error: Not supported: FirImplicitTypeImpl| {
|
public? get(): R|kotlin/Boolean| {
|
||||||
STUB
|
STUB
|
||||||
}
|
}
|
||||||
public? set(value: R|kotlin/Boolean|): R|kotlin/Unit| {
|
public? set(value: R|kotlin/Boolean|): R|kotlin/Unit| {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
FILE: typeParameterInPropertyReceiver.kt
|
FILE: typeParameterInPropertyReceiver.kt
|
||||||
<T : R|kotlin/Any|> public? final? property self R|T|.(val): R|T|
|
<T : R|kotlin/Any|> public? final? property self R|T|.(val): R|T|
|
||||||
public? get(): R|error: Not supported: FirImplicitTypeImpl| {
|
public? get(): R|T| {
|
||||||
STUB
|
STUB
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user