Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/nullabilitySmartcastWhenNullability.txt
T
Dmitry Savvinov 4434db4d69 Effects: add diagnostic tests on contracts
- Make AbstractDiagnosticsTest dump function contracts
- Add diagnostics tests on parsing contracts
- Add diagnostics tests on smartcats in presence of functions with
contracts
- Add diagnostics tests on initialization and flow in presence of
in-place called lambdas

==========
Introduction of EffectSystem: 16/18
2017-10-12 11:55:26 +03:00

11 lines
333 B
Plaintext
Vendored

package
public fun notNullWhenNotNull(/*0*/ x: kotlin.Int?): kotlin.Int?
Returns(NULL) -> x == null
public fun nullWhenNull(/*0*/ x: kotlin.Int?): kotlin.Int?
Returns(NOT_NULL) -> x != null
public fun testNotNullWhenNotNull(/*0*/ x: kotlin.Int?): kotlin.Unit
public fun testNullWhenNull(/*0*/ x: kotlin.Int?): kotlin.Unit