mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
14 lines
266 B
Kotlin
Vendored
14 lines
266 B
Kotlin
Vendored
// a.InlineReified
|
|
package a
|
|
|
|
class InlineReified {
|
|
inline fun <reified T> foo(x: Any): T = x as T
|
|
|
|
inline val <reified T> T.bar: T?
|
|
get() = null as T?
|
|
|
|
var <reified T> T.x: String
|
|
inline get() = toString()
|
|
inline set(value) {}
|
|
}
|