35505007d2
* Fixes to tests * RunKonanTest runs tests build with TestRunner * Standalone tests
26 lines
353 B
Kotlin
26 lines
353 B
Kotlin
package codegen.bridges.test13
|
|
|
|
import kotlin.test.*
|
|
|
|
open class A<T> {
|
|
open fun T.foo() {
|
|
println(this.toString())
|
|
}
|
|
|
|
fun bar(x: T) {
|
|
x.foo()
|
|
}
|
|
}
|
|
|
|
open class B: A<Int>() {
|
|
override fun Int.foo() {
|
|
println(this)
|
|
}
|
|
}
|
|
|
|
@Test fun runTest() {
|
|
val b = B()
|
|
val a = A<Int>()
|
|
b.bar(42)
|
|
a.bar(42)
|
|
} |