mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
32 lines
1.3 KiB
Kotlin
Vendored
32 lines
1.3 KiB
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
inline class A0(val x: Int)
|
|
|
|
<!ABSENCE_OF_PRIMARY_CONSTRUCTOR_FOR_INLINE_CLASS!>inline class A1<!>
|
|
inline class A2<!INLINE_CLASS_CONSTRUCTOR_WRONG_PARAMETERS_SIZE!>()<!>
|
|
inline class A3(<!INLINE_CLASS_CONSTRUCTOR_NOT_FINAL_READ_ONLY_PARAMETER!>x: Int<!>)
|
|
inline class A4(<!INLINE_CLASS_CONSTRUCTOR_NOT_FINAL_READ_ONLY_PARAMETER!>var x: Int<!>)
|
|
inline class A5<!INLINE_CLASS_CONSTRUCTOR_WRONG_PARAMETERS_SIZE!>(val x: Int, val y: Int)<!>
|
|
inline class A6<!INLINE_CLASS_CONSTRUCTOR_WRONG_PARAMETERS_SIZE!>(x: Int, val y: Int)<!>
|
|
inline class A7(<!INLINE_CLASS_CONSTRUCTOR_NOT_FINAL_READ_ONLY_PARAMETER!>vararg val x: Int<!>)
|
|
inline class A8(<!INLINE_CLASS_CONSTRUCTOR_NOT_FINAL_READ_ONLY_PARAMETER!><!NON_FINAL_MEMBER_IN_FINAL_CLASS!>open<!> val x: Int<!>)
|
|
inline class A9(final val x: Int)
|
|
|
|
class B1 {
|
|
companion object {
|
|
<!INLINE_CLASS_NOT_TOP_LEVEL!>inline class C1(val x: Int)<!>
|
|
}
|
|
|
|
<!INLINE_CLASS_NOT_TOP_LEVEL!>inline class C2(val x: Int)<!>
|
|
}
|
|
|
|
object B2 {
|
|
<!INLINE_CLASS_NOT_TOP_LEVEL!>inline class C3(val x: Int)<!>
|
|
}
|
|
|
|
final inline class D0(val x: Int)
|
|
<!INLINE_CLASS_NOT_FINAL!>open<!> inline class D1(val x: Int)
|
|
<!INLINE_CLASS_NOT_FINAL!>abstract<!> inline class D2(val x: Int)
|
|
<!INLINE_CLASS_NOT_FINAL!>sealed<!> inline class D3(val x: Int)
|