fix tests for quoted names

This commit is contained in:
Michael Nedzelsky
2015-10-08 20:53:45 +03:00
parent 2a97c28491
commit 7f0fbb4577
8 changed files with 20 additions and 20 deletions
@@ -1,4 +1,4 @@
// "Create class 'A\u00A0'" "true"
// "Create class 'A!u00A0'" "true"
fun test() {
val t = <caret>`A\u00A0`(1)
val t = <caret>`A!u00A0`(1)
}
@@ -1,8 +1,8 @@
// "Create class 'A\u00A0'" "true"
// "Create class 'A!u00A0'" "true"
fun test() {
val t = `A\u00A0`(1)
val t = `A!u00A0`(1)
}
class `A\u00A0`(i: Int) {
class `A!u00A0`(i: Int) {
}
@@ -1,4 +1,4 @@
// "Create extension function '\u00A0'" "true"
// "Create extension function '!u00A0'" "true"
fun test() {
val t: Int = 1 <caret>`\u00A0` 2
val t: Int = 1 <caret>`!u00A0` 2
}
@@ -1,8 +1,8 @@
// "Create extension function '\u00A0'" "true"
// "Create extension function '!u00A0'" "true"
fun test() {
val t: Int = 1 `\u00A0` 2
val t: Int = 1 `!u00A0` 2
}
fun Int.`\u00A0`(i: Int): Int {
fun Int.`!u00A0`(i: Int): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
@@ -1,4 +1,4 @@
// "Create parameter '\u00A0'" "true"
// "Create parameter '!u00A0'" "true"
fun test() {
val t: Int = <caret>`\u00A0`
val t: Int = <caret>`!u00A0`
}
@@ -1,4 +1,4 @@
// "Create parameter '\u00A0'" "true"
fun test(`\u00A0`: Int) {
val t: Int = `\u00A0`
// "Create parameter '!u00A0'" "true"
fun test(`!u00A0`: Int) {
val t: Int = `!u00A0`
}
@@ -1,5 +1,5 @@
// "Create property '\u00A0'" "true"
// "Create property '!u00A0'" "true"
// ERROR: Property must be initialized
fun test() {
val t: Int = <caret>`\u00A0`
val t: Int = <caret>`!u00A0`
}
@@ -1,7 +1,7 @@
val `\u00A0`: Int
val `!u00A0`: Int
// "Create property '\u00A0'" "true"
// "Create property '!u00A0'" "true"
// ERROR: Property must be initialized
fun test() {
val t: Int = `\u00A0`
val t: Int = `!u00A0`
}