Extract Function: Add backticks to non-identifiers and references originally surrounded in backticks

#KT-8192 Fixed
This commit is contained in:
Alexey Sedunov
2015-06-23 19:13:58 +03:00
parent c6f6637b25
commit 4e7200d8e8
14 changed files with 132 additions and 5 deletions
@@ -0,0 +1,10 @@
// PARAM_TYPES: kotlin.Int
// PARAM_DESCRIPTOR: val i: kotlin.Int defined in test
fun test() {
val `i` = 0
__dummyTestFun__(`i`)
}
private fun __dummyTestFun__(`i`: Int) {
`i`plus i
}