Skip to content

false flag "Conflicting overloads" with jdk interop on vscode #118

@ariam79

Description

@ariam79

when i try this snippet of code:

fun a(b: String){
    println(b)
}
fun main(){
    a("hello")
}

the LSP works as expected.

but as soon as i start to include java in my code like in the snippet below:

import java.io.File
import java.net.URI
fun filedl(url: String,file: String){
    File(file).writeBytes(URI(url).toURL().readBytes())
}
fun main(){
    filedl("...","...")
}

the LSP marks both the function definition and the function call as "Conflicting overloads"

note that both files compile and run without any errors.

at first it seems fine even after restarting the LSP. but when i open another file and go back to kotlin, it gets flagged and after that even restarting the LSP and vscode dosent solve the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions