Minor. Roll back behaviour for FlexibleType.isError.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
// FILE: Collections.java
|
||||
import java.util.List
|
||||
|
||||
public class Collections {
|
||||
public static final <T> List<T> emptyList() {
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
fun bar(): List<String> = null!!
|
||||
|
||||
fun test() {
|
||||
val f = if (true) {
|
||||
Collections.emptyList()
|
||||
}
|
||||
else {
|
||||
bar()
|
||||
}
|
||||
|
||||
checkSubtype<List<String>>(f)
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package
|
||||
|
||||
public fun bar(): kotlin.collections.List<kotlin.String>
|
||||
public fun test(): kotlin.Unit
|
||||
|
||||
public open class Collections {
|
||||
public constructor Collections()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
public final fun </*0*/ T : kotlin.Any!> emptyList(): kotlin.collections.(Mutable)List<T!>!
|
||||
}
|
||||
Reference in New Issue
Block a user