c5893913f3
Coersion to Unit from error type leads to misleading type mismatches: "expected <expected lambda return type> found Unit", despite no user-provided Unit / empty lambda. These diagnostics were collected, but not reported before, and that had been disguising the issue for a while. KT-34729 Fixed
9 lines
319 B
Plaintext
Vendored
9 lines
319 B
Plaintext
Vendored
package
|
|
|
|
public fun takeFnToAny(/*0*/ fn: () -> kotlin.Any): kotlin.Unit
|
|
public fun </*0*/ P> takeFnToParameter(/*0*/ fn: () -> P): kotlin.Unit
|
|
public fun takeFnToUnit(/*0*/ fn: () -> kotlin.Unit): kotlin.Unit
|
|
public fun testAny(): kotlin.Unit
|
|
public fun testParameter(): kotlin.Unit
|
|
public fun testUnit(): kotlin.Unit
|