regarding inline classes (<https://github.com/Kotl...
# announcements
e
regarding inline classes (https://github.com/Kotlin/KEEP/blob/master/proposals/inline-classes.md), why
Name?
gets mapped to
String
instead
String?
..?
Copy code
inline class Name(val s: String)
fun foo(n: Name?) { ... } // `Name?` here is mapped to String
p
may be it is
String
in byte code?
g
There is no
String?
in bytecode, nullable types is compiler only feature + generated asserts to check nullability
e
got it, thanks both