[TD] Update diagnostics test data due to new test runners

Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
This commit is contained in:
Dmitriy Novozhilov
2020-12-07 10:08:56 +03:00
parent 1d04fecd29
commit e6b5cb5216
1823 changed files with 3014 additions and 2662 deletions
@@ -15,15 +15,15 @@ inline operator fun <T, U, V> @ExtensionFunctionType Function2<T, U, V>.plus(p:
this - p
}
<!CONFLICTING_OVERLOADS!>inline fun <T, U, V> inlineFunWithInvoke(s: (p: T) -> U, ext: T.(p: U) -> V) {
inline fun <T, U, V> inlineFunWithInvoke(s: (p: T) -> U, ext: T.(p: U) -> V) {
s + s
ext + ext
}<!>
}
<!CONFLICTING_OVERLOADS!>inline fun <T, U, V> inlineFunWithInvoke(s: (p: T) -> U, ext: T.(p: U) -> V) {
inline fun <T, U, V> inlineFunWithInvoke(s: (p: T) -> U, ext: T.(p: U) -> V) {
s + s
ext + ext
}<!>
}
inline fun <T, U> Function1<T, U>.submit() {
this + this
+1 -1
View File
@@ -7,4 +7,4 @@ inline fun foo(f: () -> Unit) = object: Foo() {}
class A : Foo() {
inline fun foo(f: () -> Unit) = Foo()
}
}
+2 -2
View File
@@ -6,5 +6,5 @@ open class Foo protected constructor()
inline fun foo(f: () -> Unit) = object: Foo() {}
class A : Foo() {
inline fun foo(f: () -> Unit) = <!NI;PROTECTED_CONSTRUCTOR_CALL_FROM_PUBLIC_INLINE, PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>Foo<!>()
}
inline fun foo(f: () -> Unit) = <!PROTECTED_CONSTRUCTOR_CALL_FROM_PUBLIC_INLINE{NI}, PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL!>Foo<!>()
}
@@ -10,4 +10,4 @@ fun box() : String {
inline fun <T> test(p: T) {
p.toString()
}
}
@@ -1,7 +1,7 @@
// !WITH_NEW_INFERENCE
fun box() : String {
<!NI;NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test<!> {
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER{NI}!>test<!> {
<!RETURN_NOT_ALLOWED!>return@box<!> "123"
}
@@ -10,4 +10,4 @@ fun box() : String {
<!NOTHING_TO_INLINE!>inline<!> fun <T> test(p: T) {
p.toString()
}
}
@@ -1,7 +1,7 @@
// !DIAGNOSTICS: -EXPOSED_PARAMETER_TYPE -NOTHING_TO_INLINE
inline fun call(<!EXPOSED_PARAMETER_TYPE!>a: A<!>) {
inline fun call(a: A) {
a.test()
privateFun()
@@ -45,4 +45,4 @@ private fun privateFun() {
internal fun internalFun() {
}
}
@@ -45,4 +45,4 @@ private fun privateFun() {
internal fun internalFun() {
}
}
@@ -6,7 +6,7 @@ private class S public constructor() {
}
}
internal inline fun x(<!EXPOSED_PARAMETER_TYPE!>s: S<!>, z: () -> Unit) {
internal inline fun x(s: S, z: () -> Unit) {
z()
S()
s.a()
@@ -22,4 +22,4 @@ private inline fun x2(s: S, z: () -> Unit) {
private fun test(): S {
return S()
}
}
+1 -1
View File
@@ -22,4 +22,4 @@ private inline fun x2(s: S, z: () -> Unit) {
private fun test(): S {
return S()
}
}
@@ -1,4 +1,5 @@
// WITH_REFLECT
// WITH_RUNTIME
import kotlin.reflect.KProperty
@@ -1,4 +1,5 @@
// WITH_REFLECT
// WITH_RUNTIME
import kotlin.reflect.KProperty
@@ -1,5 +1,5 @@
// !DIAGNOSTICS: -EXPOSED_PARAMETER_TYPE -NOTHING_TO_INLINE
inline fun call(<!EXPOSED_PARAMETER_TYPE!>a: A<!>) {
inline fun call(a: A) {
a.test()
publishedTopLevel()
@@ -172,4 +172,4 @@ var publicVarTopLevel = 1
internal var internalVarTopLevel = 1
private var privateVarTopLevel = 1
private var privateVarTopLevel = 1
+1 -1
View File
@@ -172,4 +172,4 @@ var publicVarTopLevel = 1
internal var internalVarTopLevel = 1
private var privateVarTopLevel = 1
private var privateVarTopLevel = 1