andylamax
09/17/2021, 10:28 AMval lambdaFunction: (user: User)->Unit
yields the following typescript definitions
readonly lambdaFunction: (p0: User)-> void
Which hurts readability.
I would expect it to be exported to
readonly lambdaFunction: (user: User)-> void
Is there already a ticket for this?Big Chungus
09/17/2021, 10:29 AMandylamax
09/17/2021, 10:47 AMUnsupported [annotation on parameter in function type]
Big Chungus
09/17/2021, 10:51 AMBig Chungus
09/17/2021, 10:51 AMandylamax
09/17/2021, 10:57 AMthis
keyword.andylamax
09/17/2021, 10:58 AMundefined
all over the placeBig Chungus
09/17/2021, 10:59 AMandylamax
09/17/2021, 11:02 AMinit {
doSomething.asDynamic().bind(this) // error
}
fun doSomething(user: User) {
}
Fails with: Function Invocation expectedBig Chungus
09/17/2021, 11:04 AMBig Chungus
09/17/2021, 11:07 AM