Merge remote-tracking branch 'origin/master'

This commit is contained in:
Maxim Shafirov
2011-07-05 18:52:41 +04:00
8 changed files with 54 additions and 12 deletions
+6
View File
@@ -272,3 +272,9 @@ fun f8(b : String?, a : String) {
b.get(0)
}
}
fun f9(a : Int?) : Int {
if (a != null)
return a
return 1
}
@@ -147,3 +147,9 @@ fun f15(a : A?) {
<info descr="Automatically cast to B">a</info>.bar()
<error>c</error>.bar()
}
fun getStringLength(obj : Any) : Char? {
if (obj !is String)
return null
return <info>obj</info>.get(0) // no cast to String is needed
}