SLC: fix type mapping mode for var
^KT-57578
This commit is contained in:
committed by
Ilya Kirillov
parent
95491f223c
commit
5403cc7feb
+6
-1
@@ -66,10 +66,15 @@ internal class SymbolLightFieldForProperty private constructor(
|
||||
(kotlinOrigin as? KtProperty)?.delegateExpression?.getKtType()
|
||||
else
|
||||
propertySymbol.returnType
|
||||
// See [KotlinTypeMapper#writeFieldSignature]
|
||||
val typeMappingMode = if (propertySymbol.isVal)
|
||||
KtTypeMappingMode.RETURN_TYPE
|
||||
else
|
||||
KtTypeMappingMode.VALUE_PARAMETER
|
||||
ktType?.asPsiType(
|
||||
this@SymbolLightFieldForProperty,
|
||||
allowErrorTypes = true,
|
||||
KtTypeMappingMode.RETURN_TYPE
|
||||
typeMappingMode,
|
||||
)
|
||||
} ?: nonExistentType()
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
public abstract class C /* C*/<T> {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.util.List<java.lang.CharSequence> constructorParam;
|
||||
private java.util.List<? extends java.lang.CharSequence> constructorParam;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.HashSet<java.lang.String> sHashSetProp;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.List<java.lang.CharSequence> csListProp;
|
||||
private java.util.List<? extends java.lang.CharSequence> csListProp;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.util.List<java.lang.String> sListProp;
|
||||
|
||||
Reference in New Issue
Block a user