Files
kotlin-fork/compiler/testData/codegen/box/extensionProperties/genericValMultipleUpperBounds.kt
T
Alexander Udalov 21e64e02bd Report error on more than one class bound for type parameters
Such code may behave unexpectedly when compiled to JVM
2015-12-07 15:47:47 +03:00

11 lines
156 B
Kotlin
Vendored

import java.io.Serializable
val <T> T.valProp: T where T : Number, T : Serializable
get() = this
fun box(): String {
0.valProp
return "OK"
}