mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
classes, instead of MemberScope. The primary motivation was to fix issues around type-mapping for inline classes in FIR, which uses wrapped descriptors that have empty MemberScopes.
10 lines
168 B
Kotlin
Vendored
10 lines
168 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline class Inner(val result: String)
|
|
|
|
inline class A(val inner: Inner = Inner("OK"))
|
|
|
|
fun box(): String {
|
|
return A().inner.result
|
|
}
|