[Test] Disable UNUSED_* diagnostics in tests which are not belong to contolFlowAnalysis suite
This commit is contained in:
committed by
TeamCityServer
parent
85949b387e
commit
cd890d5833
@@ -13,8 +13,8 @@ fun first() {
|
||||
}
|
||||
|
||||
fun useCompanion() {
|
||||
val <!UNUSED_VARIABLE!>d<!> = <!DEPRECATION!>Another<!>
|
||||
val <!UNUSED_VARIABLE!>x<!> = Another.<!DEPRECATION!>Companion<!>
|
||||
val d = <!DEPRECATION!>Another<!>
|
||||
val x = Another.<!DEPRECATION!>Companion<!>
|
||||
Another.<!DEPRECATION!>Companion<!>.use()
|
||||
<!DEPRECATION!>Another<!>.use()
|
||||
}
|
||||
|
||||
+9
-9
@@ -33,48 +33,48 @@ open class SetterDeprecated {
|
||||
class WD: WarningDeprecated() {
|
||||
override var p: Int
|
||||
get() = 3
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {}
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
class ED: ErrorDeprecated() {
|
||||
override var p: Int
|
||||
get() = 3
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {
|
||||
set(value) {
|
||||
}
|
||||
}
|
||||
|
||||
class GD: GetterDeprecated() {
|
||||
override var p: Int
|
||||
get() = 3
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {
|
||||
set(value) {
|
||||
}
|
||||
}
|
||||
|
||||
class SD: SetterDeprecated() {
|
||||
override var p: Int
|
||||
get() = 3
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {
|
||||
set(value) {
|
||||
}
|
||||
}
|
||||
|
||||
class SDH: SetterDeprecated(), HiddenDeprecated {
|
||||
override var p: Int
|
||||
get() = 3
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {
|
||||
set(value) {
|
||||
}
|
||||
}
|
||||
|
||||
class EDH: ErrorDeprecated(), HiddenDeprecated {
|
||||
override var p: Int
|
||||
get() = 3
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {
|
||||
set(value) {
|
||||
}
|
||||
}
|
||||
|
||||
class NED: ErrorDeprecated(), NoDeprecation {
|
||||
override var p: Int
|
||||
get() = 3
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {
|
||||
set(value) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ class Diff {
|
||||
@Deprecated("", level = DeprecationLevel.WARNING)
|
||||
var p: Int
|
||||
@Deprecated("", level = DeprecationLevel.ERROR) get() = 3
|
||||
@Deprecated("", level = DeprecationLevel.HIDDEN) set(<!UNUSED_PARAMETER!>value<!>) {
|
||||
@Deprecated("", level = DeprecationLevel.HIDDEN) set(value) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -132,4 +132,4 @@ fun use(
|
||||
|
||||
diff.<!DEPRECATION!>p<!>
|
||||
diff.<!DEPRECATION, DEPRECATION_ERROR!>p<!> = 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,23 +8,23 @@ val v2 = ""
|
||||
var v3: String
|
||||
@Deprecated("", level = DeprecationLevel.HIDDEN)
|
||||
get() = ""
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {}
|
||||
set(value) {}
|
||||
|
||||
var v4: String
|
||||
get() = ""
|
||||
@Deprecated("", level = DeprecationLevel.HIDDEN)
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {}
|
||||
set(value) {}
|
||||
|
||||
var v5: String
|
||||
@Deprecated("", level = DeprecationLevel.HIDDEN)
|
||||
get() = ""
|
||||
@Deprecated("", level = DeprecationLevel.HIDDEN)
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {}
|
||||
set(value) {}
|
||||
|
||||
@Deprecated("", level = DeprecationLevel.HIDDEN)
|
||||
var v6: String
|
||||
get() = ""
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {}
|
||||
set(value) {}
|
||||
|
||||
fun test() {
|
||||
<!DEPRECATION_ERROR!>v1<!>
|
||||
|
||||
@@ -12,7 +12,7 @@ class TopLevel {
|
||||
}
|
||||
|
||||
fun useNested() {
|
||||
val <!UNUSED_VARIABLE!>d<!> = TopLevel.<!DEPRECATION!>Nested<!>.use()
|
||||
val d = TopLevel.<!DEPRECATION!>Nested<!>.use()
|
||||
TopLevel.<!DEPRECATION!>Nested<!>.Nested2()
|
||||
TopLevel.<!DEPRECATION!>Nested<!>.<!UNRESOLVED_REFERENCE!>CompanionNested2<!>()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@ object Obsolete {
|
||||
|
||||
fun useObject() {
|
||||
<!DEPRECATION!>Obsolete<!>.use()
|
||||
val <!UNUSED_VARIABLE!>x<!> = <!DEPRECATION!>Obsolete<!>
|
||||
val x = <!DEPRECATION!>Obsolete<!>
|
||||
}
|
||||
|
||||
@@ -52,11 +52,11 @@ fun fn() {
|
||||
PropertyHolder().test4
|
||||
PropertyHolder().<!DEPRECATION!>test4<!> = ""
|
||||
|
||||
val <!UNUSED_VARIABLE!>a<!> = PropertyHolder().<!DEPRECATION!>x<!>
|
||||
val <!UNUSED_VARIABLE!>b<!> = PropertyHolder().<!DEPRECATION!>name<!>
|
||||
val a = PropertyHolder().<!DEPRECATION!>x<!>
|
||||
val b = PropertyHolder().<!DEPRECATION!>name<!>
|
||||
PropertyHolder().<!DEPRECATION!>name<!> = "value"
|
||||
|
||||
val <!UNUSED_VARIABLE!>d<!> = PropertyHolder().valDelegate
|
||||
val d = PropertyHolder().valDelegate
|
||||
PropertyHolder().varDelegate = 1
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ class Properties {
|
||||
|
||||
var n : <!DEPRECATION!>Obsolete<!>
|
||||
get() = <!DEPRECATION!>Obsolete<!>()
|
||||
set(<!UNUSED_PARAMETER!>value<!>) {}
|
||||
set(value) {}
|
||||
}
|
||||
|
||||
fun param(param: <!DEPRECATION!>Obsolete<!>) { param.use() }
|
||||
|
||||
Reference in New Issue
Block a user