Don't report TAILREC_ON_VIRTUAL_MEMBER on private opened functions instead of leaving private members final by allopen plugin

^KT-48117 Fixed
This commit is contained in:
Victor Petukhov
2021-09-27 10:55:04 +03:00
parent c3773d14bb
commit 3530840da3
4 changed files with 11 additions and 6 deletions
@@ -13,4 +13,6 @@ private class Test {
internal fun internalMethod() {}
internal val internalProp: String = ""
private tailrec fun privateTailrecMethod() {}
}
@@ -1,4 +1,4 @@
@java.lang.annotation.Retention
@java.lang.annotation.Retention(value=RUNTIME)
@kotlin.Metadata
public annotation class AllOpen {
// source: 'privateMembers.kt'
@@ -18,6 +18,7 @@ class Test {
public @org.jetbrains.annotations.NotNull method getPublicProp(): java.lang.String
public method internalMethod$test_module(): void
private method privateMethod(): void
private method privateTailrecMethod(): void
protected method protectedMethod(): void
public method publicMethod(): void
}
@@ -1,4 +1,4 @@
@java.lang.annotation.Retention
@java.lang.annotation.Retention(value=RUNTIME)
@kotlin.Metadata
public annotation class AllOpen {
// source: 'privateMembers.kt'
@@ -6,7 +6,7 @@ public annotation class AllOpen {
@AllOpen
@kotlin.Metadata
final class Test {
class Test {
// source: 'privateMembers.kt'
private final @org.jetbrains.annotations.NotNull field internalProp: java.lang.String
private final @org.jetbrains.annotations.NotNull field privateProp: java.lang.String
@@ -17,8 +17,8 @@ final class Test {
protected @org.jetbrains.annotations.NotNull method getProtectedProp(): java.lang.String
public @org.jetbrains.annotations.NotNull method getPublicProp(): java.lang.String
public method internalMethod$test_module(): void
private final method privateMethod(): void
private final method privateTailrecMethod(): void
private method privateMethod(): void
private method privateTailrecMethod(): void
protected method protectedMethod(): void
public method publicMethod(): void
}