Add @file:Suppress("UNUSED_EXPRESSION") to generated interop stubs

This commit is contained in:
Svyatoslav Scherbina
2017-03-28 10:50:54 +03:00
committed by SvyatoslavScherbina
parent 6eb0ceb572
commit 6af710028c
@@ -1160,6 +1160,7 @@ class StubGenerator(
* Produces to [out] the contents of file with Kotlin bindings.
*/
fun generateKotlinFile() {
out("@file:Suppress(\"UNUSED_EXPRESSION\")")
if (pkgName != "") {
out("package $pkgName")
out("")