Add quickfix for FINAL_UPPER_BOUND: inline type parameter #KT-13773 Fixed

This commit is contained in:
shiraji
2016-09-06 20:14:12 +03:00
committed by Mikhail Glukhikh
parent 28d187ca1a
commit 9d768e2375
9 changed files with 127 additions and 0 deletions
@@ -0,0 +1,3 @@
// "Inline type parameter" "true"
data class DC<T : Int<caret>>(val x: T, val y: String)
@@ -0,0 +1,3 @@
// "Inline type parameter" "true"
data class DC(val x: Int, val y: String)
@@ -0,0 +1,9 @@
// "Inline type parameter" "true"
data class DC<T : Int<caret>, S : String>(val x: T, val y: String) {
var a: T = Int.MAX_VALUE
fun foo(b: T) {
val c: T = Int.MIN_VALUE
}
}
@@ -0,0 +1,9 @@
// "Inline type parameter" "true"
data class DC<S : String>(val x: Int, val y: String) {
var a: Int = Int.MAX_VALUE
fun foo(b: Int) {
val c: Int = Int.MIN_VALUE
}
}
@@ -0,0 +1,7 @@
// "Inline type parameter" "true"
data class DC(val x: Int, val y: String) {
fun <S : Int<caret>> foo() {
val a: S = Int.MAX_VALUE
}
}
@@ -0,0 +1,7 @@
// "Inline type parameter" "true"
data class DC(val x: Int, val y: String) {
fun foo() {
val a: Int = Int.MAX_VALUE
}
}