[NI] Move abstract class instantiation check to call checkers
This way the check works for callable reference arguments. Also candidate applicability during resolution does not change compared to the old inference. ^KT-37530 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
|
||||
abstract class Abstract
|
||||
|
||||
fun <D> create(fn: () -> D): D {
|
||||
return fn()
|
||||
}
|
||||
|
||||
fun main() {
|
||||
create(::<!CREATING_AN_INSTANCE_OF_ABSTRACT_CLASS, OI;CREATING_AN_INSTANCE_OF_ABSTRACT_CLASS, OI;CREATING_AN_INSTANCE_OF_ABSTRACT_CLASS!>Abstract<!>)
|
||||
}
|
||||
Reference in New Issue
Block a user