Files
kotlin/compiler/testData/codegen/box/inlineClasses/defaultParameterValues/inlineClassPrimaryConstructorWithInlineClassValue.kt
Mark Punzalan 802beb49a6 Use TypeSubstitutor to get the substituted underlying type for inline
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.
2020-06-04 17:03:55 +03:00

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
}