"Convert lambda to reference": do not remove required backticks
#KT-15700 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
44edd94fea
commit
0e1e1e350f
@@ -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`
|
||||
Reference in New Issue
Block a user