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