split FunctionGenTest.defaultArgs

This commit is contained in:
Stepan Koltsov
2012-02-09 22:25:19 +04:00
parent 6a8f2e14fb
commit 5c8fb3febf
7 changed files with 104 additions and 52 deletions
@@ -0,0 +1,13 @@
open abstract class B() : java.lang.Object() {
abstract fun foo2(arg: Int = 239) : Int
}
class C() : B() {
override fun foo2(arg: Int) : Int = arg
}
fun box() : String {
if(C().foo2() != 239) return "fail"
if(C().foo2(10) != 10) return "fail"
return "OK"
}