From d8cbeb8d1570582816dd34cfe31fe5953e126a87 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Fri, 5 Apr 2019 14:17:09 +0300 Subject: [PATCH] Add regression test for `SPREAD_OF_NULLABLE` diagnostic #KT-30808 Fixed --- .../diagnostics/tests/varargs/NullableTypeForVarargArgument.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt b/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt index 5e7c55d1075..dc44796bbce 100644 --- a/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt +++ b/compiler/testData/diagnostics/tests/varargs/NullableTypeForVarargArgument.kt @@ -62,4 +62,5 @@ fun k() { fun invokeTest(goodArgs: Array) { J.staticFun(*goodArgs) J.staticFun(*args) + J.staticFun(*args ?: null) } \ No newline at end of file