Propagate KotlinType to callable reference receivers

This commit is contained in:
Dmitry Petrov
2018-10-15 16:38:56 +03:00
parent 3dc4d01adc
commit 9c7c0c8952
7 changed files with 125 additions and 56 deletions
@@ -58,7 +58,7 @@ fun KotlinType.isNullableUnderlyingType(): Boolean {
return TypeUtils.isNullableType(underlyingType)
}
fun PropertyDescriptor.isUnderlyingPropertyOfInlineClass(): Boolean {
fun VariableDescriptor.isUnderlyingPropertyOfInlineClass(): Boolean {
val containingDeclaration = this.containingDeclaration
if (!containingDeclaration.isInlineClass()) return false