Report error on repeated upper bounds for type parameters
This commit is contained in:
@@ -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 */ }
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user