Fix small compilation problems in LC testdata which should not influence LC results
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
package pkg
|
package pkg
|
||||||
|
|
||||||
open class Open {
|
open class Open {
|
||||||
private class Private: Open {}
|
private class Private: Open() {}
|
||||||
protected inner class Private2 {}
|
protected inner class Private2 {}
|
||||||
internal class StaticInternal {}
|
internal class StaticInternal {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
class TestConstructor private constructor(p: Int = 1)
|
class TestConstructor private constructor(p: Int = 1)
|
||||||
class A(vararg a: Int, f: () -> Unit) {}
|
class AAA(vararg a: Int, f: () -> Unit) {}
|
||||||
|
|
||||||
class B {
|
class B {
|
||||||
@Deprecated("", level = DeprecationLevel.HIDDEN)
|
@Deprecated("", level = DeprecationLevel.HIDDEN)
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
//RELEASE_COROUTINE_NEEDED
|
//RELEASE_COROUTINE_NEEDED
|
||||||
//CHECK_BY_JAVA_FILE
|
//CHECK_BY_JAVA_FILE
|
||||||
class Foo {
|
class Foo {
|
||||||
suspend fun doSomething(foo: Foo): Bar {}
|
suspend fun doSomething(foo: Foo): Bar { TODO() }
|
||||||
}
|
}
|
||||||
|
|
||||||
class Boo {
|
class Boo {
|
||||||
private suspend fun doSomething(foo: Foo): Bar {}
|
private suspend fun doSomething(foo: Foo): Bar { TODO() }
|
||||||
}
|
}
|
||||||
|
|
||||||
class Bar {
|
class Bar {
|
||||||
fun <T> async(block: suspend () -> T)
|
fun <T> async(block: suspend () -> T) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Base {
|
interface Base {
|
||||||
@@ -17,7 +17,7 @@ interface Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Derived: Base {
|
class Derived: Base {
|
||||||
override suspend fun foo() { ... }
|
override suspend fun foo() { }
|
||||||
}
|
}
|
||||||
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
class C @JvmOverloads constructor(
|
class C @JvmOverloads constructor(
|
||||||
val type: String?,
|
val type: String?,
|
||||||
val p1: Boolean = false,
|
val p1: Boolean = false,
|
||||||
val p2: String = type
|
val p2: String = type!!
|
||||||
) {
|
) {
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
fun foo(x: Int = 1, y: Double, z: String = "") {}
|
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) {
|
class C @Throws(Exception::class) constructor(a: Int = 1) {
|
||||||
@Throws(java.io.IOException::class, MyException::class)
|
@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
|
// Should be mapped to java.lang.Throwable
|
||||||
@Throws(kotlin.Throwable::class)
|
@Throws(kotlin.Throwable::class)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//RELEASE_COROUTINE_NEEDED
|
//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
|
// WITH_STDLIB
|
||||||
// FIR_COMPARISON
|
// FIR_COMPARISON
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
|
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||||
@kotlin.internal.InlineOnly
|
@kotlin.internal.InlineOnly
|
||||||
inline fun foo() {}
|
inline fun foo() {}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
class MyException : Exception
|
class MyException : Exception()
|
||||||
|
|
||||||
@Throws(java.io.IOException::class, MyException::class)
|
@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
|
// Should be mapped to java.lang.Throwable
|
||||||
@Throws(kotlin.Throwable::class)
|
@Throws(kotlin.Throwable::class)
|
||||||
|
|||||||
Reference in New Issue
Block a user