[FIR] Add NON_INTERNAL_PUBLISHED_API diagnostic

This commit is contained in:
Andrey Zinovyev
2021-07-21 15:47:36 +03:00
committed by teamcityserver
parent 46d1b63f70
commit efce3fc2e0
10 changed files with 50 additions and 71 deletions
-71
View File
@@ -1,71 +0,0 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
@kotlin.PublishedApi
class A
@kotlin.PublishedApi
internal class B
@kotlin.PublishedApi
private class C
@kotlin.PublishedApi
fun a() {}
@kotlin.PublishedApi
internal fun b() {}
@kotlin.PublishedApi
internal fun c() {}
@kotlin.PublishedApi
var ap = 1
@kotlin.PublishedApi
internal var bp = 1
@kotlin.PublishedApi
internal var c = 1
class E {
@kotlin.PublishedApi
fun a() {}
@kotlin.PublishedApi
internal fun b() {}
@kotlin.PublishedApi
private fun c() {}
@kotlin.PublishedApi
protected fun d() {}
@kotlin.PublishedApi
val ap = 1
@kotlin.PublishedApi
internal val bp = 1
@kotlin.PublishedApi
protected val c = 1
@kotlin.PublishedApi
private val d = 1
}
class D @kotlin.PublishedApi constructor() {
@kotlin.PublishedApi
constructor(a: String) : this()
@kotlin.PublishedApi
private constructor(a: String, b: String): this()
@kotlin.PublishedApi
internal constructor(a: String, b: String, c: String): this()
}
+1
View File
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
<!NON_INTERNAL_PUBLISHED_API!>@kotlin.PublishedApi<!>
class A