From 99e02665b5129facec3372f313d9c3f3ec342fc3 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Mon, 23 Dec 2019 12:10:33 +0300 Subject: [PATCH] Add forgotten FIR test data for old FE test --- .../callableReferenceToLocalVariable.fir.kt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 compiler/testData/diagnostics/tests/callableReference/callableReferenceToLocalVariable.fir.kt diff --git a/compiler/testData/diagnostics/tests/callableReference/callableReferenceToLocalVariable.fir.kt b/compiler/testData/diagnostics/tests/callableReference/callableReferenceToLocalVariable.fir.kt new file mode 100644 index 00000000000..fced0fba80e --- /dev/null +++ b/compiler/testData/diagnostics/tests/callableReference/callableReferenceToLocalVariable.fir.kt @@ -0,0 +1,8 @@ +// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE + +fun a() { + val x = 10 + foo(::x) +} + +fun foo(a: Any) {} \ No newline at end of file