Fix "Extract variable" for anonymous object suggests name "nonameprovided" (KT-4813)

#KT-4813 Fixed
This commit is contained in:
Nikolay Krasko
2014-04-04 22:11:45 +04:00
parent 43b41f6db9
commit dd45da01d1
5 changed files with 46 additions and 3 deletions
@@ -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
*/