Inspection to get rid of unnecessary ticks in references #KT-18124 Fixed
This commit is contained in:
committed by
Alexey Sedunov
parent
9e500831dd
commit
1875d129ea
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.RemoveRedundantBackticksInspection
|
||||
@@ -0,0 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(<caret>`a`: Int) {
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(<caret>a: Int) {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
<caret>`print`("I don't want to use ticks in Kotlin anymore")
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
<caret>print("I don't want to use ticks in Kotlin anymore")
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// PROBLEM: none
|
||||
fun foo() {
|
||||
<caret>val ` two words ` = "two words"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// PROBLEM: none
|
||||
fun foo() {
|
||||
<caret>`is`("bar")
|
||||
}
|
||||
|
||||
fun `is`(x: String) {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
val <caret>`a` = 1
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
val <caret>a = 1
|
||||
}
|
||||
Reference in New Issue
Block a user