Fixing failed tests: do not report anything on casts that can never succeed
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user