Report error on more than one class bound for type parameters
Such code may behave unexpectedly when compiled to JVM
This commit is contained in:
+4
-2
@@ -1,8 +1,10 @@
|
||||
val <T> T.valProp: T where T : Number, T : Int
|
||||
import java.io.Serializable
|
||||
|
||||
val <T> T.valProp: T where T : Number, T : Serializable
|
||||
get() = this
|
||||
|
||||
fun box(): String {
|
||||
0.valProp
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user