[FIR] Add dynamic stages to callable reference resolution
This fixes an overload resolution ambiguity on callable references in the presence of a dynamic extension receiver. #KT-58143 Fixed
This commit is contained in:
committed by
Space Team
parent
c16f2f1067
commit
d96c33e080
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
// FIR_IDENTICAL
|
||||
// DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun <T : Any> jso(): T =
|
||||
js("({})")
|
||||
|
||||
fun <T : Any> jso(
|
||||
block: T.() -> Unit,
|
||||
): T = jso<T>().apply(block)
|
||||
|
||||
object FooBar {
|
||||
fun buildNodes() = jso<dynamic> {
|
||||
this["code_block"] = ParseRuleBuilder.create(getAttrs = ::readCodeBlockAttrs)
|
||||
}
|
||||
|
||||
private fun readCodeBlockAttrs() {
|
||||
}
|
||||
}
|
||||
|
||||
object ParseRuleBuilder {
|
||||
fun create(
|
||||
getAttrs: Any? = null,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user