Where is the appropriate place to report code comp...
# announcements
m
Where is the appropriate place to report code completion (AS) issues?
Copy code
fun (String.() -> Unit).test() {
    "anything to demonstrate the point".apply {
        // no code completion for "this" -> "this@test"
        "something".this()
    }
}
e
y
Well that's because
this
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
Does autocomplete show you
this@test
as a suggestion though? because if it doesn't then yeah this probably is a bug since
this@test
is actually applicable here
m
The point of code completion is to complete an expression that does not yet compile, to an expression that does compile. It does not show
this@test
as a suggestion.
y
Ohhhhh then yep that's definitely a bug. KTIJ is probably the right place to report it to
j
I noticed this one as well, instead of reporting it I got used to type it out myself 😄
if you have a report I am happy to star it
m