FIR: don't create incorrect constraints in CallableReferenceResolution

#KT-50994 Fixed
Related to KT-49477
This commit is contained in:
Mikhail Glukhikh
2022-04-18 14:07:08 +03:00
committed by Space
parent bdf229bc5c
commit 0ecba0ad0b
12 changed files with 178 additions and 388 deletions
@@ -9,7 +9,7 @@ inline fun <reified Self : DatabaseEntity, reified Target : DatabaseEntity> Self
property: KProperty1<Target, MutableCollection<Self>>): Delegate<Self, Target?> = TODO()
class GitLabBuildProcessor: DatabaseEntity {
var processor by parent(GitLabChangesProcessor::buildProcessors)
var processor by <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>parent<!>(GitLabChangesProcessor::buildProcessors)
}
interface DatabaseEntity: Entity
@@ -33,4 +33,4 @@ class GitLabChangesProcessor: DatabaseEntity {
fun <Self : DatabaseEntity, Target : DatabaseEntity> Self.child_many(
clazz: Class<Target>, property: KProperty1<Target, Self?>, name: String = property.name
): Delegate<Self, MutableCollection<Target>> = TODO() // Type checking has run into a recursive problem. Easiest workaround: specify types of your declarations explicitly
): Delegate<Self, MutableCollection<Target>> = TODO() // Type checking has run into a recursive problem. Easiest workaround: specify types of your declarations explicitly