Files
kotlin-fork/compiler/testData/ir/irText/expressions/objectAsCallable.kt
T
Dmitriy Dolovov 4532f52898 IR text tests: Unmute enum class-related tests
Making enum class-related tests unmuted requires implementing
a special "compatibility" mode for IR tree dumper to filter out
fake override declarations leaking from java.enum.Enum and
kotlin.Enum (JVM-only) classes.
2023-11-30 08:32:35 +00:00

10 lines
140 B
Kotlin
Vendored

object A
enum class En { X }
operator fun A.invoke(i: Int) = i
operator fun En.invoke(i: Int) = i
val test1 = A(42)
val test2 = En.X(42)