Skip to content

Scala Implicit Conversion eg from Int to Long Causes the Int token to lack Precise Code Intelligence #412

@wchau

Description

@wchau

lsif-java version: 0.7.7

Type of code: Implicit Conversion from Int to Long

Expected behavior: When an Int var / val is used as a Long parameter or converted to Long, Precise Code Intelligence should still work on the Int var / val.

Actual behavior: Definition Code Intelligence is missing. When "Find References" is clicked, ALL implicit Int to Long conversions show up in Precise Code Intelligence.

val a: Int = 5
val b: Long = a

a is lacking correct Precise Code Intelligence

def a(b: Long): Unit = {
...
}
...
val b: Int = 5
a(b)

b is lacking correct Precise Code Intelligence

I haven't tried it, but presumably, Float and Double may have the same issue (and maybe other implicit conversions I am unaware of)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions