KT-23394: Add a test with a property

This commit is contained in:
Yan Zhulanow
2020-10-07 18:52:26 +09:00
parent cdf7f46ce1
commit f2dc132d5d
3 changed files with 25 additions and 0 deletions
@@ -0,0 +1,10 @@
// "Change type of 'Foo.x' to 'String?'" "true"
class Foo {
var x = null
fun foo(condition: Boolean) {
if (condition) {
x = "abc"<caret>
}
}
}
@@ -0,0 +1,10 @@
// "Change type of 'Foo.x' to 'String?'" "true"
class Foo {
var x: String? = null
fun foo(condition: Boolean) {
if (condition) {
x = "abc"<caret>
}
}
}