Create From Usage: Quote declaration name if it's not a valid identifier
#EA-70291 Fixed
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
// "Create class 'A\u00A0'" "true"
|
||||
fun test() {
|
||||
val t = <caret>`A\u00A0`(1)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create class 'A\u00A0'" "true"
|
||||
fun test() {
|
||||
val t = `A\u00A0`(1)
|
||||
}
|
||||
|
||||
class `A\u00A0`(i: Int) {
|
||||
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Create extension function '\u00A0'" "true"
|
||||
fun test() {
|
||||
val t: Int = 1 <caret>`\u00A0` 2
|
||||
}
|
||||
+8
@@ -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.
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create parameter '\u00A0'" "true"
|
||||
fun test() {
|
||||
val t: Int = <caret>`\u00A0`
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Create parameter '\u00A0'" "true"
|
||||
fun test(`\u00A0`: Int) {
|
||||
val t: Int = `\u00A0`
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Create property '\u00A0'" "true"
|
||||
// ERROR: Property must be initialized
|
||||
fun test() {
|
||||
val t: Int = <caret>`\u00A0`
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
val `\u00A0`: Int
|
||||
|
||||
// "Create property '\u00A0'" "true"
|
||||
// ERROR: Property must be initialized
|
||||
fun test() {
|
||||
val t: Int = `\u00A0`
|
||||
}
|
||||
Reference in New Issue
Block a user