Name Suggester: Allow any Kotlin identifier in suggested names

#KT-10332 Fixed
This commit is contained in:
Alexey Sedunov
2015-12-11 17:41:13 +03:00
parent ee9eb55b59
commit 04c6ea78c7
9 changed files with 87 additions and 8 deletions
@@ -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
*/
+10
View File
@@ -0,0 +1,10 @@
fun foo(): (Int) -> Int = { 1 }
fun test() {
<selection>foo()</selection>
}
/*
foo
function
*/
+10
View File
@@ -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
*/