[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
+11
-11
@@ -8,9 +8,9 @@ class Test(foo: Any?, bar: Any?) {
|
||||
private fun bas2(): Int = null!!
|
||||
|
||||
fun bar() = bar(1)
|
||||
fun bar(<!UNUSED_PARAMETER!>i<!>: Int) = 2
|
||||
fun bar(i: Int) = 2
|
||||
private fun bar2() = bar2(1)
|
||||
private fun bar2(<!UNUSED_PARAMETER!>i<!>: Int) = 2
|
||||
private fun bar2(i: Int) = 2
|
||||
}
|
||||
|
||||
// KT-6413 Typechecker recursive problem when class have non-invariant generic parameters
|
||||
@@ -24,9 +24,9 @@ class Test2<A, B, C>(foo: Any?, bar: Any?) {
|
||||
private fun bas2(): Int = null!!
|
||||
|
||||
fun bar() = bar(1)
|
||||
fun bar(<!UNUSED_PARAMETER!>i<!>: Int) = 2
|
||||
fun bar(i: Int) = 2
|
||||
private fun bar2() = bar2(1)
|
||||
private fun bar2(<!UNUSED_PARAMETER!>i<!>: Int) = 2
|
||||
private fun bar2(i: Int) = 2
|
||||
}
|
||||
|
||||
class Test3<in A, B, C>(foo: Any?, bar: Any?) {
|
||||
@@ -39,9 +39,9 @@ class Test3<in A, B, C>(foo: Any?, bar: Any?) {
|
||||
private fun bas2(): Int = null!!
|
||||
|
||||
fun bar() = bar(1)
|
||||
fun bar(<!UNUSED_PARAMETER!>i<!>: Int) = 2
|
||||
fun bar(i: Int) = 2
|
||||
private fun bar2() = <!TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM!><!DEBUG_INFO_MISSING_UNRESOLVED!>bar2<!>(1)<!>
|
||||
private fun bar2(<!UNUSED_PARAMETER!>i<!>: Int) = 2
|
||||
private fun bar2(i: Int) = 2
|
||||
}
|
||||
|
||||
class Test4<A, out B, C>(foo: Any?, bar: Any?) {
|
||||
@@ -54,9 +54,9 @@ class Test4<A, out B, C>(foo: Any?, bar: Any?) {
|
||||
private fun bas2(): Int = null!!
|
||||
|
||||
fun bar() = bar(1)
|
||||
fun bar(<!UNUSED_PARAMETER!>i<!>: Int) = 2
|
||||
fun bar(i: Int) = 2
|
||||
private fun bar2() = <!TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM!><!DEBUG_INFO_MISSING_UNRESOLVED!>bar2<!>(1)<!>
|
||||
private fun bar2(<!UNUSED_PARAMETER!>i<!>: Int) = 2
|
||||
private fun bar2(i: Int) = 2
|
||||
}
|
||||
|
||||
class Test5<A, out B, C>(foo: Any?, bar: Any?) {
|
||||
@@ -69,7 +69,7 @@ class Test5<A, out B, C>(foo: Any?, bar: Any?) {
|
||||
private fun bas2(): Int = null!!
|
||||
|
||||
fun bar() = bar(1)
|
||||
fun bar(<!UNUSED_PARAMETER!>i<!>: Int) = 2
|
||||
fun bar(i: Int) = 2
|
||||
private fun bar2(): Int = bar2(1)
|
||||
private fun bar2(<!UNUSED_PARAMETER!>i<!>: Int) = 2
|
||||
}
|
||||
private fun bar2(i: Int) = 2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user