diff options
Diffstat (limited to 'plugins/kotlin/idea/tests/testData/inspectionsLocal/overrideDeprecatedMigration/copyDeprecation4.kt')
-rw-r--r-- | plugins/kotlin/idea/tests/testData/inspectionsLocal/overrideDeprecatedMigration/copyDeprecation4.kt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/overrideDeprecatedMigration/copyDeprecation4.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/overrideDeprecatedMigration/copyDeprecation4.kt new file mode 100644 index 000000000000..451bf941c080 --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/overrideDeprecatedMigration/copyDeprecation4.kt @@ -0,0 +1,12 @@ +// WITH_STDLIB + +open class Base { + @Deprecated("Don't use", level = DeprecationLevel.HIDDEN, replaceWith = ReplaceWith("bar()", "p", "q")) + open fun foo() {} + + open fun bar() {} +} + +class Derived : Base() { + override fun <caret>foo() {} +} |