Fix small compilation problems in LC testdata which should not influence LC results

This commit is contained in:
Ilya Kirillov
2021-12-23 15:11:52 +03:00
parent 02f9f116b2
commit 4e58dc3467
8 changed files with 14 additions and 13 deletions
@@ -2,7 +2,7 @@
package pkg
open class Open {
private class Private: Open {}
private class Private: Open() {}
protected inner class Private2 {}
internal class StaticInternal {}
}
+1 -1
View File
@@ -1,5 +1,5 @@
class TestConstructor private constructor(p: Int = 1)
class A(vararg a: Int, f: () -> Unit) {}
class AAA(vararg a: Int, f: () -> Unit) {}
class B {
@Deprecated("", level = DeprecationLevel.HIDDEN)
+4 -4
View File
@@ -1,15 +1,15 @@
//RELEASE_COROUTINE_NEEDED
//CHECK_BY_JAVA_FILE
class Foo {
suspend fun doSomething(foo: Foo): Bar {}
suspend fun doSomething(foo: Foo): Bar { TODO() }
}
class Boo {
private suspend fun doSomething(foo: Foo): Bar {}
private suspend fun doSomething(foo: Foo): Bar { TODO() }
}
class Bar {
fun <T> async(block: suspend () -> T)
fun <T> async(block: suspend () -> T) {}
}
interface Base {
@@ -17,7 +17,7 @@ interface Base {
}
class Derived: Base {
override suspend fun foo() { ... }
override suspend fun foo() { }
}
// WITH_STDLIB
+1 -1
View File
@@ -1,7 +1,7 @@
class C @JvmOverloads constructor(
val type: String?,
val p1: Boolean = false,
val p2: String = type
val p2: String = type!!
) {
@JvmOverloads
fun foo(x: Int = 1, y: Double, z: String = "") {}
@@ -1,8 +1,8 @@
class MyException : Exception
class MyException : Exception()
class C @Throws(Exception::class) constructor(a: Int = 1) {
@Throws(java.io.IOException::class, MyException::class)
fun readFile(name: String): String {}
fun readFile(name: String): String { TODO() }
// Should be mapped to java.lang.Throwable
@Throws(kotlin.Throwable::class)
+2 -2
View File
@@ -1,7 +1,7 @@
//RELEASE_COROUTINE_NEEDED
suspend fun doSomething(foo: String): Int {}
suspend fun doSomething(foo: String): Int { TODO() }
fun <T> async(block: suspend () -> T)
fun <T> async(block: suspend () -> T) { TODO() }
// WITH_STDLIB
// FIR_COMPARISON
@@ -1,2 +1,3 @@
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.InlineOnly
inline fun foo() {}
@@ -1,8 +1,8 @@
class MyException : Exception
class MyException : Exception()
@Throws(java.io.IOException::class, MyException::class)
fun readFile(name: String): String {}
fun readFile(name: String): String { TODO() }
// Should be mapped to java.lang.Throwable
@Throws(kotlin.Throwable::class)