"Convert lambda to reference": do not remove required backticks

#KT-15700 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-09-09 15:46:06 +09:00
committed by Dmitry Gridin
parent 44edd94fea
commit 0e1e1e350f
6 changed files with 35 additions and 6 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun `super`(x: Int): Int = TODO()
fun main(args: Array<String>) {
listOf(1).map { <caret>`super`(it) }
}
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun `super`(x: Int): Int = TODO()
fun main(args: Array<String>) {
listOf(1).map(::`super`)
}
@@ -0,0 +1,3 @@
class Person(val `super`: String)
val reader = { p: Person -> p.`super`<caret> }
@@ -0,0 +1,3 @@
class Person(val `super`: String)
val reader = Person::`super`