From 637e6f5acc54dfea044a76027fea7cc22d8523d6 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Mon, 16 Dec 2019 11:09:57 +0300 Subject: [PATCH] FIR: add forgotten test data for old FE test --- .../implicitInferenceTToFlexibleNothing.fir.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 compiler/testData/diagnostics/tests/inference/nothingType/implicitInferenceTToFlexibleNothing.fir.kt diff --git a/compiler/testData/diagnostics/tests/inference/nothingType/implicitInferenceTToFlexibleNothing.fir.kt b/compiler/testData/diagnostics/tests/inference/nothingType/implicitInferenceTToFlexibleNothing.fir.kt new file mode 100644 index 00000000000..61352d7e646 --- /dev/null +++ b/compiler/testData/diagnostics/tests/inference/nothingType/implicitInferenceTToFlexibleNothing.fir.kt @@ -0,0 +1,11 @@ +// !DIAGNOSTICS: -UNUSED_VARIABLE -UNCHECKED_CAST -UNUSED_PARAMETER +// !LANGUAGE: +NewInference +// SKIP_TXT + +import java.util.* + +fun foo (f: () -> List): T = null as T + +fun main() { + val x = foo { Collections.emptyList() } +}