Files
kotlin-fork/compiler/testData/asJava/lightClasses/lightClassByPsi/inlineClasses.kt
T
2023-01-02 15:05:42 +00:00

30 lines
595 B
Kotlin
Vendored

inline class UInt(private val value: Int) { }
inline enum class Foo(val x: Int) {
A(0), B(1);
fun example() { }
}
inline class InlinedDelegate<T>(var node: T) {
operator fun setValue(thisRef: A, property: KProperty<*>, value: T) {
if (node !== value) {
thisRef.notify(node, value)
}
node = value
}
operator fun getValue(thisRef: A, property: KProperty<*>): T {
return node
}
}
inline class InlineInheritance(val v: Int) : I {
override fun y() = 4
override val x get() = 5
fun z() = 7
}
// COMPILATION_ERRORS