Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/genericFunctions.kt
T
2020-12-16 19:52:30 +03:00

8 lines
153 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
}