Implement quick fix to convert a too long char literal to a string #KT-13635 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
391a0fdde5
commit
06c804787f
+5
@@ -0,0 +1,5 @@
|
||||
// "Convert too long character literal to string" "true"
|
||||
|
||||
fun foo() {
|
||||
'foo\nbar'<caret>
|
||||
}
|
||||
+5
@@ -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>
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Convert too long character literal to string" "true"
|
||||
// ERROR: Unresolved reference: bar
|
||||
|
||||
fun foo() {
|
||||
"foo$bar"
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Convert too long character literal to string" "true"
|
||||
|
||||
fun foo() {
|
||||
'foo"bar'<caret>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Convert too long character literal to string" "true"
|
||||
|
||||
fun foo() {
|
||||
"foo\"bar"
|
||||
}
|
||||
Reference in New Issue
Block a user