Add test on bytecode text
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'
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user