Implement quick fix to convert a too long char literal to a string #KT-13635 Fixed

This commit is contained in:
gitreelike
2016-09-21 00:21:06 +02:00
committed by Mikhail Glukhikh
parent 391a0fdde5
commit 06c804787f
9 changed files with 100 additions and 0 deletions
@@ -0,0 +1,5 @@
// "Convert too long character literal to string" "true"
fun foo() {
'foo\nbar'<caret>
}
@@ -0,0 +1,5 @@
// "Convert too long character literal to string" "true"
fun foo() {
"foo\nbar"
}
@@ -0,0 +1,6 @@
// "Convert too long character literal to string" "true"
// ERROR: Unresolved reference: bar
fun foo() {
'foo$bar'<caret>
}
@@ -0,0 +1,6 @@
// "Convert too long character literal to string" "true"
// ERROR: Unresolved reference: bar
fun foo() {
"foo$bar"
}
@@ -0,0 +1,5 @@
// "Convert too long character literal to string" "true"
fun foo() {
'foo"bar'<caret>
}
@@ -0,0 +1,5 @@
// "Convert too long character literal to string" "true"
fun foo() {
"foo\"bar"
}