3d6ec0ec75
Previously, creating a declaration with Fir2IrCallableDeclarationsGenerator/ Fir2IrClassifiersGenerator didn't guarantee that this declaration will be actually added to the list of parent class/file declarations, which lead to situations when FIR2IR created some declarations in the air (mostly fake-overrides)
23 lines
579 B
Kotlin
Vendored
23 lines
579 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// ISSUE: KT-52677
|
|
// IGNORE_BACKEND: JS_IR
|
|
// IGNORE_BACKEND: JS_IR_ES6
|
|
|
|
// KT-61141: throws kotlin.RuntimeException instead of java.lang.RuntimeException
|
|
// IGNORE_BACKEND: NATIVE
|
|
|
|
@Target(AnnotationTarget.TYPE)
|
|
annotation class MySerializable(val c: kotlin.reflect.KClass<*>)
|
|
|
|
public data class LoginSuccessPacket(val id: Uuid)
|
|
|
|
public typealias Uuid = @MySerializable(UuidSerializer::class) Uuid1
|
|
|
|
interface MySerializer<T>
|
|
public object UuidSerializer : MySerializer<Uuid>
|
|
public class Uuid1
|
|
|
|
fun foo(): Uuid { throw RuntimeException() }
|
|
|
|
fun bar() = foo()
|