896fbbd1a3
Helps fixing to more specific type in the following situations: Type1 <: Var1 Var2 <: Var1 Var2 <: Type2 Type1 and Type2 may also be nullable and non-nullable versions of the same type. Note that no additional constraints can be inferred from such constraints before fixation. Resulting types for variables will always Type1 and Type2 may also be nullable and non-nullable versions of the same type. Fixing Var1 first will make Var2's type more specific while fixing Var2 first will make Var1's type less specific. The first is preferrable in general.
6 lines
211 B
Plaintext
Vendored
6 lines
211 B
Plaintext
Vendored
package
|
|
|
|
public fun </*0*/ T, /*1*/ VR : T> foo(/*0*/ x: T, /*1*/ fn: (VR?, T) -> kotlin.Unit): kotlin.Unit
|
|
public fun main(/*0*/ x: kotlin.Int): kotlin.Unit
|
|
public fun takeInt(/*0*/ x: kotlin.Int): kotlin.Unit
|