Type annotations required on functions

This commit is contained in:
Andrey Breslav
2011-06-15 21:21:19 +04:00
parent 317877d67a
commit 8786c6a667
20 changed files with 62 additions and 58 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ class Outer() {
public val x = Inner()
}
fun box() {
fun box() : String {
val o = Outer()
return if (o === o.x.outer) "OK" else "fail"
}