Type annotations required on functions
This commit is contained in:
@@ -10,7 +10,7 @@ class Outer() {
|
||||
public val x = InnerDerived()
|
||||
}
|
||||
|
||||
fun box() {
|
||||
fun box() : String {
|
||||
val o = Outer()
|
||||
return if (o.x.name != "xyzzy") "fail" else "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user