mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
Test data should be a Kotlin source file with zero or more comments e.g. of the form: '// 1 INVOKEVIRTUAL'. The test then checks that the generated bytecode for this file contains exactly one occurrence of the string 'INVOKEVIRTUAL'
18 lines
278 B
Kotlin
Vendored
18 lines
278 B
Kotlin
Vendored
open class Base<T> {
|
|
public open fun foo(t: T): T = t
|
|
|
|
public open fun bar() {}
|
|
}
|
|
|
|
class Child: Base<String>() {
|
|
override fun foo(t: String): String {
|
|
return super<Base>.foo(t)
|
|
}
|
|
|
|
override fun bar() {
|
|
super.bar()
|
|
}
|
|
}
|
|
|
|
// 1 bridge
|