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
@@ -6,6 +6,6 @@ open class AL {
trait ALE<T> : AL {
fun getOrNull(index: Int, value: T) : T {
return get(index) as? T ?: value
}
return <!UNCHECKED_CAST!>get(index) as? T<!> ?: value
}
}