Type annotations required on functions
This commit is contained in:
@@ -13,7 +13,7 @@ class World() {
|
||||
val foo = Item()
|
||||
}
|
||||
|
||||
fun box() {
|
||||
fun box() : String {
|
||||
val w = World()
|
||||
if (w.items.size() != 1) return "fail"
|
||||
return "OK"
|
||||
|
||||
Reference in New Issue
Block a user