Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/genericFunctions.kt
T
2020-03-19 09:51:01 +03:00

7 lines
152 B
Kotlin
Vendored

interface Any
inline fun <reified T : Any> Any.safeAs(): T? = this as? T
abstract class Summator {
abstract fun <T> plus(first: T, second: T): T
}