New J2K: consider in-context declarations while performing conversion on copy-paste plain text conversion
#KT-32602 fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class A {
|
||||
val str: String = TODO()
|
||||
internal fun f() {
|
||||
str.length
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
class A {
|
||||
val str: String = TODO()
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
void f() {
|
||||
str.length();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
val str: Int = 10
|
||||
fun test() {
|
||||
val str: String = ""
|
||||
val len = str.length
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
val str: Int = 10
|
||||
fun test() {
|
||||
val str: String = ""
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
int len = str.length();
|
||||
@@ -0,0 +1,4 @@
|
||||
fun test() {
|
||||
val str: String = ""
|
||||
val len = str.length
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun test() {
|
||||
val str: String = ""
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
int len = str.length();
|
||||
@@ -0,0 +1,4 @@
|
||||
val str: String = TODO()
|
||||
internal fun f() {
|
||||
str.length
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
val str: String = TODO()
|
||||
<caret>
|
||||
@@ -0,0 +1,3 @@
|
||||
void f() {
|
||||
str.length();
|
||||
}
|
||||
Reference in New Issue
Block a user