mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Test cases are chosen so that addition/removal of explicit type will not interfere with the original purpose of the test
12 lines
124 B
Kotlin
12 lines
124 B
Kotlin
package test
|
|
|
|
trait T {
|
|
fun foo(): Int
|
|
}
|
|
|
|
class A : T {
|
|
override fun foo(): Int = 42
|
|
|
|
class object : T by A()
|
|
}
|