Add tests for obsolete codegen issues

#KT-16790 Obsolete
 #KT-16858 Obsolete
 #KT-17441 Obsolete
This commit is contained in:
Alexander Udalov
2019-01-09 18:50:37 +01:00
parent 0bb97cf590
commit cca6ba38be
8 changed files with 100 additions and 0 deletions
@@ -0,0 +1,14 @@
// IGNORE_BACKEND: JVM_IR, JS_IR
fun WithCompanion.test(): String {
object : WithCompanion(this) {}
return "OK"
}
open class WithCompanion(a: WithCompanion.Companion) {
companion object
}
fun box(): String {
return WithCompanion(WithCompanion.Companion).test()
}