Add tests for obsolete codegen issues
#KT-8203 Obsolete #KT-15950 Obsolete
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
fun box(): String {
|
||||
return if ((arrayOf(1, 2, 3)::get)(1) == 2) "OK" else "Fail"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class X {
|
||||
fun g(x: () -> Boolean = { super.equals(this) }) = x()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return if (X().g()) "OK" else "Fail: false"
|
||||
}
|
||||
Reference in New Issue
Block a user