KT-5099 "Remove explicit type arguments" should highlight only type arguments
#KT-5099 Fixed
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
val z = <caret>bar<String, Int, Int, String>("1", 1, 2, "x")
|
||||
val z = bar<caret><String, Int, Int, String>("1", 1, 2, "x")
|
||||
}
|
||||
|
||||
fun bar<T, V, R, K>(t: T, v: V, r: R, k: K): Int = 2
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun foo() {
|
||||
<caret>bar<(Int) -> Int>({ baz(it) })
|
||||
bar<caret><(Int) -> Int>({ baz(it) })
|
||||
}
|
||||
|
||||
fun baz(x: Int): Int = x
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
<caret>bar<(Int) -> Int> { (it:Int) -> it }
|
||||
bar<caret><(Int) -> Int> { (it: Int) -> it }
|
||||
}
|
||||
|
||||
fun bar<T>(t: T): Int = 1
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
bar {(it: Int) -> it }
|
||||
bar { (it: Int) -> it }
|
||||
}
|
||||
|
||||
fun bar<T>(t: T): Int = 1
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
val x = <caret>Box<Any>(Any())
|
||||
val x = Box<caret><Any>(Any())
|
||||
}
|
||||
|
||||
class Box<T>(t : T) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
<caret>bar<String>("x")
|
||||
bar<caret><String>("x")
|
||||
}
|
||||
|
||||
fun bar<T>(t: T): Int = 1
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
val x = <caret>Box<String>("x")
|
||||
val x = Box<caret><String>("x")
|
||||
}
|
||||
|
||||
class Box<T>(t : T) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
val x = <caret>Box("x")
|
||||
val x = Box<caret>("x")
|
||||
}
|
||||
|
||||
class Box<T>(t : T) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
val x = <caret>Box<Box<String>>(Box("x"))
|
||||
val x = Box<caret><Box<String>>(Box("x"))
|
||||
}
|
||||
|
||||
class Box<T>(t : T) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// IS_APPLICABLE: false
|
||||
// ERROR: Unresolved reference: LinkedList
|
||||
fun foo() {
|
||||
val x = <caret>bar<String>()
|
||||
val x = bar<caret><String>()
|
||||
}
|
||||
|
||||
fun <T> bar() : List<T> = LinkedList<T>();
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun foo() {
|
||||
val x = <caret>bar<Any>("x")
|
||||
val x = bar<caret><Any>("x")
|
||||
}
|
||||
|
||||
fun bar<T>(t: T): Int = 1
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun foo() {
|
||||
val x = <caret>Box<Any>("x")
|
||||
val x = Box<caret><Any>("x")
|
||||
}
|
||||
|
||||
class Box<T>(t : T) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
val x = <caret>bar<String, Int>("x", 0)
|
||||
val x = bar<caret><String, Int>("x", 0)
|
||||
}
|
||||
|
||||
fun bar<T, V>(t: T, v: V): Int = 1
|
||||
@@ -1,7 +1,7 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
val x = "x"
|
||||
<caret>bar<String>(x)
|
||||
bar<caret><String>(x)
|
||||
}
|
||||
|
||||
fun bar<T>(t: T): Int = 1
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo(x: String) {
|
||||
<caret>bar<String>(x)
|
||||
bar<caret><String>(x)
|
||||
}
|
||||
|
||||
fun bar<T>(t: T): Int = 1
|
||||
@@ -2,7 +2,7 @@
|
||||
val x = "x"
|
||||
|
||||
fun foo() {
|
||||
<caret>bar<String>(x)
|
||||
bar<caret><String>(x)
|
||||
}
|
||||
|
||||
fun bar<T>(t: T): Int = 1
|
||||
@@ -2,7 +2,7 @@
|
||||
fun foo() {
|
||||
val x = "1"
|
||||
val y = 2
|
||||
val z = <caret>bar<String, Int, Int, String>(x, 1, y, "x")
|
||||
val z = bar<caret><String, Int, Int, String>(x, 1, y, "x")
|
||||
}
|
||||
|
||||
fun bar<T, V, R, K>(t: T, v: V, r: R, k: K): Int = 2
|
||||
Reference in New Issue
Block a user