Allow to suppress kotlin inspections with Suppress() annotation

This commit is contained in:
Nikolay Krasko
2015-12-11 20:13:19 +03:00
committed by Nikolay Krasko
parent ef265e23f8
commit 36210f0a27
14 changed files with 161 additions and 11 deletions
@@ -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 }
}
@@ -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 }
}