Files
kotlin-fork/backend.native/tests/codegen/bridges/test13.kt
T
Pavel Punegov 35505007d2 TestRunner support in test's build.gradle
* Fixes to tests
 * RunKonanTest runs tests build with TestRunner
 * Standalone tests
2017-10-20 18:25:05 +03:00

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)
}