[FIR] Fix redundant visibility checker
This commit is contained in:
committed by
Mikhail Glukhikh
parent
9b8128aaa8
commit
d96772444e
Vendored
+20
@@ -50,3 +50,23 @@ fun f() {
|
||||
}
|
||||
|
||||
<!REDUNDANT_VISIBILITY_MODIFIER!>public<!> var baz = 0
|
||||
|
||||
open class J {
|
||||
protected val baz = 0
|
||||
<!REDUNDANT_VISIBILITY_MODIFIER!>protected<!> get() = field * 2
|
||||
var baf = 0
|
||||
<!REDUNDANT_VISIBILITY_MODIFIER!>public<!> get() = 1
|
||||
<!REDUNDANT_VISIBILITY_MODIFIER!>public<!> set(value) {
|
||||
field = value
|
||||
}
|
||||
|
||||
var buf = 0
|
||||
private get() = 42
|
||||
protected set(value) {
|
||||
field = value
|
||||
}
|
||||
|
||||
var bar = 0
|
||||
get() = 3.1415926535
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
Vendored
+34
@@ -114,3 +114,37 @@ FILE: RedundantVisibilityModifierChecker.kt
|
||||
public final var baz: R|kotlin/Int| = Int(0)
|
||||
public get(): R|kotlin/Int|
|
||||
public set(value: R|kotlin/Int|): R|kotlin/Unit|
|
||||
public open class J : R|kotlin/Any| {
|
||||
public constructor(): R|J| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
protected final val baz: R|kotlin/Int| = Int(0)
|
||||
protected get(): R|kotlin/Int| {
|
||||
^ this@R|/J|.F|/J.baz|.R|kotlin/Int.times|(Int(2))
|
||||
}
|
||||
|
||||
public final var baf: R|kotlin/Int| = Int(0)
|
||||
public get(): R|kotlin/Int| {
|
||||
^ Int(1)
|
||||
}
|
||||
public set(value: R|kotlin/Int|): R|kotlin/Unit| {
|
||||
this@R|/J|.F|/J.baf| = R|<local>/value|
|
||||
}
|
||||
|
||||
public final var buf: R|kotlin/Int| = Int(0)
|
||||
private get(): R|kotlin/Int| {
|
||||
^ Int(42)
|
||||
}
|
||||
protected set(value: R|kotlin/Int|): R|kotlin/Unit| {
|
||||
this@R|/J|.F|/J.buf| = R|<local>/value|
|
||||
}
|
||||
|
||||
public final var bar: R|kotlin/Int| = Int(0)
|
||||
public get(): R|kotlin/Int| {
|
||||
^ Double(3.1415926535)
|
||||
}
|
||||
public set(value: R|kotlin/Int|): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user