-
Notifications
You must be signed in to change notification settings - Fork 367
Open
Labels
P1major features or blocking bugsmajor features or blocking bugsapiAPI changes may be involvedAPI changes may be involved
Description
Hi!
For example:
fun complexContextFunction(block: context(String, Int) StringBuilder.(Boolean) -> Unit) {
context("Context", 42) {
StringBuilder().block(true)
}
}When I tried:
function.parameters.forEach {
println("function parameter: $it")
println("function parameter.type.annotations.resolve().annotations: ${it.type.resolve().annotations.toList()}")
}I got:
function parameter: block
function parameter.type.annotations.resolve().annotations: [@ExtensionFunctionType]I haven't found an API to directly access the context parameters, nor can I indirectly parse it using the kotlin.ContextFunctionTypeParams annotation.
Metadata
Metadata
Assignees
Labels
P1major features or blocking bugsmajor features or blocking bugsapiAPI changes may be involvedAPI changes may be involved