Fixing failed tests: do not report anything on casts that can never succeed

This commit is contained in:
Andrey Breslav
2013-09-04 16:32:47 +04:00
parent e3079ac667
commit e3175c66e8
11 changed files with 26 additions and 26 deletions
@@ -23,7 +23,7 @@ class MyProperty<R, T> {
public fun get(thisRef: R, desc: PropertyMetadata): T {
println("get $thisRef ${desc.name}")
return null <!CAST_NEVER_SUCCEEDS!>as<!> T
return null as T
}
public fun set(thisRef: R, desc: PropertyMetadata, value: T) {