Oh interesting! So userType by definition can never be "dynamic"? I noticed DYNAMIC is also a part "simpleIdentifier" (which is used to define userType)
e
ephemient
05/06/2024, 4:31 PM
hmm good point, I didn't spot that
a
aerb
05/06/2024, 4:33 PM
As a test I tried parsing the word "dynamic" with the compiled KotlinParser from the kotlin-spec repo, and it resolved to "userType"
aerb
05/06/2024, 5:27 PM
Also if there is a better channel please let me know 🙏
e
ephemient
05/06/2024, 5:45 PM
#compiler maybe
d
dmitriy.novozhilov
05/07/2024, 7:25 AM
Yes,
dynamic
in type position is always parsed as intrinsic type for js even if there is a class named
dynamic
Copy code
class dynamic // (1)
fun foo() {
val x: dynamic /* dynamic type */ = dynamic() // constructor of (1)
}