KT-23394: Add a test with a property
This commit is contained in:
@@ -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>
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
@@ -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>
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14278,6 +14278,11 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
|
||||
runTest("idea/testData/quickfix/typeMismatch/variableInitializedWithNull4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("variableInitializedWithNullProperty.kt")
|
||||
public void testVariableInitializedWithNullProperty() throws Exception {
|
||||
runTest("idea/testData/quickfix/typeMismatch/variableInitializedWithNullProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("when.kt")
|
||||
public void testWhen() throws Exception {
|
||||
runTest("idea/testData/quickfix/typeMismatch/when.kt");
|
||||
|
||||
Reference in New Issue
Block a user