Allow to suppress kotlin inspections with Suppress() annotation
This commit is contained in:
committed by
Nikolay Krasko
parent
ef265e23f8
commit
36210f0a27
+11
@@ -7,3 +7,14 @@ fun test() {
|
||||
i
|
||||
}
|
||||
}
|
||||
|
||||
fun withSuppression() {
|
||||
class Test{
|
||||
operator fun get(a: Int, b: Int, fn: (i: Int) -> Int) : Int = 0
|
||||
}
|
||||
|
||||
val test = Test()
|
||||
|
||||
@Suppress("ReplaceGetOrSet")
|
||||
test.get(1, 2) { i -> i }
|
||||
}
|
||||
|
||||
+11
@@ -7,3 +7,14 @@ fun test() {
|
||||
i
|
||||
}]
|
||||
}
|
||||
|
||||
fun withSuppression() {
|
||||
class Test{
|
||||
operator fun get(a: Int, b: Int, fn: (i: Int) -> Int) : Int = 0
|
||||
}
|
||||
|
||||
val test = Test()
|
||||
|
||||
@Suppress("ReplaceGetOrSet")
|
||||
test.get(1, 2) { i -> i }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user