Do special insert even for custom trimIndent() function to avoid using resolve (KT-31810)

This commit is contained in:
Nikolay Krasko
2019-09-13 23:39:25 +03:00
parent 147f805c56
commit 9b32bd7138
5 changed files with 38 additions and 8 deletions
@@ -0,0 +1,11 @@
fun String.trimIndent() = this
fun test() = doTest("""
def foo(a)
a ? 0 : 1
end
""".trimIndent())
fun doTest(rubyCode: String) {
// some code here
}
@@ -0,0 +1,10 @@
fun String.trimIndent() = this
fun test() = doTest("""
<caret>
""".trimIndent())
fun doTest(rubyCode: String) {
// some code here
}
@@ -0,0 +1,3 @@
def foo(a)
a ? 0 : 1
end