Additional tests for KT-21131
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// "Replace with 'm'" "true"
|
||||
|
||||
private class C {
|
||||
var m: String = ""
|
||||
}
|
||||
|
||||
@Deprecated("", ReplaceWith("m"))
|
||||
private var C.old: String
|
||||
get() = m
|
||||
set(value) {
|
||||
m = value
|
||||
}
|
||||
|
||||
private fun use(c: C) {
|
||||
val x = c.old<caret>
|
||||
}
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// "Replace with 'm'" "true"
|
||||
|
||||
private class C {
|
||||
var m: String = ""
|
||||
}
|
||||
|
||||
@Deprecated("", ReplaceWith("m"))
|
||||
private var C.old: String
|
||||
get() = m
|
||||
set(value) {
|
||||
m = value
|
||||
}
|
||||
|
||||
private fun use(c: C) {
|
||||
val x = c.m
|
||||
}
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// "Replace with 'm'" "true"
|
||||
|
||||
private class C {
|
||||
var m: String = ""
|
||||
}
|
||||
|
||||
@Deprecated("", ReplaceWith("m"))
|
||||
private var C.old: String
|
||||
get() = m
|
||||
set(value) {
|
||||
m = value
|
||||
}
|
||||
|
||||
private fun use(c: C, s: String) {
|
||||
c.old<caret> = s
|
||||
}
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// "Replace with 'm'" "true"
|
||||
|
||||
private class C {
|
||||
var m: String = ""
|
||||
}
|
||||
|
||||
@Deprecated("", ReplaceWith("m"))
|
||||
private var C.old: String
|
||||
get() = m
|
||||
set(value) {
|
||||
m = value
|
||||
}
|
||||
|
||||
private fun use(c: C, s: String) {
|
||||
c.m = s
|
||||
}
|
||||
@@ -5679,6 +5679,16 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
|
||||
public void testCallToProperty() throws Exception {
|
||||
runTest("idea/testData/quickfix/deprecatedSymbolUsage/properties/callToProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionPropertyToProperty.kt")
|
||||
public void testExtensionPropertyToProperty() throws Exception {
|
||||
runTest("idea/testData/quickfix/deprecatedSymbolUsage/properties/extensionPropertyToProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionPropertyWriteToProperty.kt")
|
||||
public void testExtensionPropertyWriteToProperty() throws Exception {
|
||||
runTest("idea/testData/quickfix/deprecatedSymbolUsage/properties/extensionPropertyWriteToProperty.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("idea/testData/quickfix/deprecatedSymbolUsage/publishedApi")
|
||||
|
||||
Reference in New Issue
Block a user