mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 00:21:32 +00:00
Support inheritance from java 8 interfaces
#KT-5969 In Progress
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
trait A : MyInt {
|
||||
override public fun test(): String? {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
class B: A
|
||||
|
||||
fun box() : String {
|
||||
return B().test()!!
|
||||
}
|
||||
Reference in New Issue
Block a user