[tests][lldb] Added a reproducer for #KT-61131

This commit is contained in:
Igor Chevdar
2023-08-21 11:43:36 +03:00
committed by Space Team
parent c1874d0184
commit 7c67e9e08b
3 changed files with 51 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
// KIND: STANDALONE_LLDB
// LLDB_TRACE: kt61131.txt
// FILE: kt61131-1.kt
class FooImpl : Foo {
override fun bar() = "zzz"
}
fun call_bar(foo: Foo) {
val s1 = foo.bar()
val s2 = foo.bar()
println(s1 + s2)
}
fun main() {
call_bar(FooImpl())
}
// FILE: kt61131-2.kt
interface Foo {
fun bar(): String
}