Type annotations required on functions
This commit is contained in:
@@ -6,7 +6,7 @@ class Bar(): Foo {
|
||||
fun test(): String = xyzzy()
|
||||
}
|
||||
|
||||
fun box() {
|
||||
fun box() : String {
|
||||
val bar = Bar()
|
||||
val f = bar.test()
|
||||
return if (f == "xyzzy") "OK" else "fail"
|
||||
|
||||
Reference in New Issue
Block a user