Report error on repeated upper bounds for type parameters

This commit is contained in:
Alexander Udalov
2015-11-20 23:06:24 +03:00
parent 21e64e02bd
commit 5fbb9bfe3b
16 changed files with 99 additions and 42 deletions
@@ -8,7 +8,7 @@ public final class SecondaryConstructors public constructor(x: kotlin.Boolean) {
private constructor(x: kotlin.Int) { /* compiled code */ }
public final inner class Inner<T : kotlin.String, G : kotlin.Int> where G : kotlin.Number {
public final inner class Inner<T : kotlin.String, G : kotlin.Int> where G : java.io.Serializable {
public constructor(x: T, g: G) { /* compiled code */ }
}
@@ -1,5 +1,7 @@
package test
import java.io.Serializable
class SecondaryConstructors(x: Boolean) {
init {
}
@@ -13,7 +15,7 @@ class SecondaryConstructors(x: Boolean) {
private constructor(x: Int) : this(x < 0) {
}
inner class Inner<T : String, G : Int> where G : Number {
inner class Inner<T : String, G : Int> where G : Serializable {
constructor(x: T, g: G) {
}
}