Mark
05/03/2021, 2:09 AMfun (String.() -> Unit).test() {
"anything to demonstrate the point".apply {
// no code completion for "this" -> "this@test"
"something".this()
}
}
ephemient
05/03/2021, 2:42 AMYoussef Shoaib [MOD]
05/03/2021, 4:01 AMthis
in that context is actually not a function, it's a string! If you try to compile the code above, you get this :
`Expression 'this' of type 'String' cannot be invoked as a function. The function 'invoke()' is not found
Youssef Shoaib [MOD]
05/03/2021, 4:02 AMthis@test
as a suggestion though? because if it doesn't then yeah this probably is a bug since this@test
is actually applicable hereMark
05/03/2021, 4:02 AMthis@test
as a suggestion.Youssef Shoaib [MOD]
05/03/2021, 4:09 AMJoost Klitsie
05/03/2021, 7:54 AMJoost Klitsie
05/03/2021, 7:54 AMMark
05/03/2021, 8:02 AM