Create From Usage: Quote declaration name if it's not a valid identifier

#EA-70291 Fixed
This commit is contained in:
Alexey Sedunov
2015-08-18 18:24:35 +03:00
parent d18a9f6d8a
commit 85f85e85b4
12 changed files with 78 additions and 5 deletions
@@ -0,0 +1,4 @@
// "Create extension function '\u00A0'" "true"
fun test() {
val t: Int = 1 <caret>`\u00A0` 2
}
@@ -0,0 +1,8 @@
// "Create extension function '\u00A0'" "true"
fun test() {
val t: Int = 1 `\u00A0` 2
}
fun Int.`\u00A0`(i: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}