Name Suggester: Allow any Kotlin identifier in suggested names
#KT-10332 Fixed
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
fun main(args: Array<String>) {
|
||||
val a = a1
|
||||
println(a)
|
||||
val a1 = a1
|
||||
println(a1)
|
||||
println(a2)
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
fun foo(): Int.(Int) -> Int = { 1 }
|
||||
|
||||
fun test() {
|
||||
<selection>foo()</selection>
|
||||
}
|
||||
|
||||
/*
|
||||
foo
|
||||
function
|
||||
*/
|
||||
@@ -0,0 +1,10 @@
|
||||
fun foo(): Int.(Int, Int) -> Int = { 1 }
|
||||
|
||||
fun test() {
|
||||
<selection>foo()</selection>
|
||||
}
|
||||
|
||||
/*
|
||||
foo
|
||||
function
|
||||
*/
|
||||
@@ -0,0 +1,10 @@
|
||||
fun foo(): (Int) -> Int = { 1 }
|
||||
|
||||
fun test() {
|
||||
<selection>foo()</selection>
|
||||
}
|
||||
|
||||
/*
|
||||
foo
|
||||
function
|
||||
*/
|
||||
@@ -0,0 +1,10 @@
|
||||
fun foo(): (Int, Int) -> Int = { 1 }
|
||||
|
||||
fun test() {
|
||||
<selection>foo()</selection>
|
||||
}
|
||||
|
||||
/*
|
||||
foo
|
||||
function
|
||||
*/
|
||||
@@ -0,0 +1,9 @@
|
||||
class Test123
|
||||
|
||||
fun foo() {
|
||||
<selection>Test123()</selection>
|
||||
}
|
||||
|
||||
/*
|
||||
test123
|
||||
*/
|
||||
@@ -0,0 +1,9 @@
|
||||
class Тест123
|
||||
|
||||
fun тест() {
|
||||
<selection>Тест123()</selection>
|
||||
}
|
||||
|
||||
/*
|
||||
тест123
|
||||
*/
|
||||
Reference in New Issue
Block a user