| // CHECK_BY_JAVA_FILE |
| 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 |