Fix "Extract variable" for anonymous object suggests name "nonameprovided" (KT-4813)
#KT-4813 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// KT-4813
|
||||
|
||||
fun foo() {
|
||||
<selection>object {}</selection>
|
||||
}
|
||||
|
||||
/*
|
||||
value
|
||||
*/
|
||||
@@ -0,0 +1,11 @@
|
||||
// KT-4813
|
||||
|
||||
trait A
|
||||
|
||||
fun foo() {
|
||||
<selection>object: A {}</selection>
|
||||
}
|
||||
|
||||
/*
|
||||
value
|
||||
*/
|
||||
@@ -0,0 +1,9 @@
|
||||
fun test() = array(object {})
|
||||
|
||||
fun foo() {
|
||||
<selection>test()</selection>
|
||||
}
|
||||
|
||||
/*
|
||||
test
|
||||
*/
|
||||
Reference in New Issue
Block a user