Inspection to get rid of unnecessary ticks in references #KT-18124 Fixed

This commit is contained in:
kenji tomita
2017-08-22 08:38:54 +09:00
committed by Alexey Sedunov
parent 9e500831dd
commit 1875d129ea
13 changed files with 156 additions and 2 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.RemoveRedundantBackticksInspection
@@ -0,0 +1,3 @@
// WITH_RUNTIME
fun foo(<caret>`a`: Int) {
}
@@ -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")
}
@@ -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
}