Is it possible to give a more specific deprecation...
# getting-started
i
Is it possible to give a more specific deprecation suppression here? I have had no luck putting just
@Suppress("DEPRECATION")
anywhere
Copy code
$ cat Test1.kt 
@file:Suppress("DEPRECATION")

import foo.Bar
$ cat Test2.kt
package foo

@Deprecated(message = "Bar is deprecated")
interface Bar
$ kotlinc -Werror Test1.kt Test2.kt