KT-4137: Verify error

#KT-4137 Fixed
This commit is contained in:
Mikhael Bogdanov
2013-10-25 16:24:52 +04:00
parent 6074667fd4
commit e3882e2dfb
3 changed files with 33 additions and 5 deletions
@@ -0,0 +1,13 @@
open class A(val s: Int) {
}
fun Int.foo(s: Int): Int {
return this + s
}
open class B : A({ 1 foo 2} ())
fun box(): String {
return if (B().s == 3) "OK" else "Fail"
}