:wave: I’m having trouble resolving names while pa...
# compiler
t
👋 I’m having trouble resolving names while parsing Kotlin code. Parsing
val a: Int = 0
resolves
Int
, but
val l = listOf(1, 2, 3)
results in an unresolved name. How does the Kotlin compiler resolve default imports like
kotlin.collections.*
?
d
There is a number of default imports which are implicitly added to each file by compiler Those imports include
kotlin.*
,
kotlin.collections.*
,
kotlin.annotations.*
and some more
t
Ah, I see - tyvm!
e