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