mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
13 lines
180 B
Kotlin
Vendored
13 lines
180 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
package test
|
|
|
|
inline class Z(val value: Int)
|
|
|
|
interface IFoo<T> {
|
|
fun foo(): T
|
|
}
|
|
|
|
open class KFooZ : IFoo<Z> {
|
|
override fun foo(): Z = Z(42)
|
|
} |