-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IR] update testdata: escape special symbols in Char and String const…
…ant values
- Loading branch information
Showing
3 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
val test1: String | ||
field = "🤗" | ||
field = "\uD83E\uDD17" | ||
get | ||
|
||
val test2: String | ||
field = "🤗🤗" | ||
field = "\uD83E\uDD17\uD83E\uDD17" | ||
get | ||
|
||
const val testConst1: String | ||
field = "🤗" | ||
field = "\uD83E\uDD17" | ||
get | ||
|
||
const val testConst2: String | ||
field = "🤗🤗" | ||
field = "\uD83E\uDD17\uD83E\uDD17" | ||
get | ||
|
||
const val testConst3: String | ||
field = "🤗🤗🤗" | ||
field = "\uD83E\uDD17\uD83E\uDD17\uD83E\uDD17" | ||
get | ||
|
||
const val testConst4: String | ||
field = "🤗🤗🤗🤗" | ||
field = "\uD83E\uDD17\uD83E\uDD17\uD83E\uDD17\uD83E\uDD17" | ||
get | ||
|
||
fun test1(x: Int): String { | ||
return "🤗" + x | ||
return "\uD83E\uDD17" + x | ||
} | ||
|
||
fun test2(x: Int): String { | ||
return x + "🤗" | ||
return x + "\uD83E\uDD17" | ||
} | ||
|
||
fun test3(x: Int): String { | ||
return x + "🤗" + x | ||
return x + "\uD83E\uDD17" + x | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,7 @@ val test4: String | |
get | ||
|
||
val test5: String | ||
field = " | ||
abc | ||
" | ||
field = "\nabc\n" | ||
get | ||
|
||
val test6: String | ||
|
2 changes: 1 addition & 1 deletion
2
compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.kt.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
private const val BACKSLASH: Char | ||
field = '\' | ||
field = '\\' | ||
private get | ||
|
||
private fun Reader.nextChar(): Char? { | ||
|