[NI] Fix resolving callable references with typealias in ths
#KT-31199 Fixed
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
65380f4eb4
commit
f2bbae6a63
+2
-1
@@ -6,6 +6,7 @@
|
||||
package org.jetbrains.kotlin.resolve.calls.model
|
||||
|
||||
import org.jetbrains.kotlin.descriptors.ClassDescriptor
|
||||
import org.jetbrains.kotlin.descriptors.TypeAliasDescriptor
|
||||
import org.jetbrains.kotlin.name.Name
|
||||
import org.jetbrains.kotlin.resolve.DescriptorUtils
|
||||
import org.jetbrains.kotlin.resolve.scopes.receivers.DetailedReceiver
|
||||
@@ -81,7 +82,7 @@ sealed class LHSResult {
|
||||
val unboundDetailedReceiver: ReceiverValueWithSmartCastInfo
|
||||
|
||||
init {
|
||||
assert(qualifier.descriptor is ClassDescriptor) {
|
||||
assert(qualifier.descriptor is ClassDescriptor || qualifier.descriptor is TypeAliasDescriptor) {
|
||||
"Should be ClassDescriptor: ${qualifier.descriptor}"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user