Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
callableReference
/
genericCallWithReferenceAgainstVarargAndKFunction.kt
blob: 4a28a6233f4801320037b62aa83294be16f11a16 [
file
]
// FIR_IDENTICAL
// DIAGNOSTICS: -UNUSED_PARAMETER
fun
<
A1
>
fun2
(
f
:
kotlin
.
reflect
.
KFunction1
<
A1
,
Unit
>,
a
:
A1
)
{
f
.
invoke
(
a
)
}
fun containsRegex
(
vararg otherPatterns
:
String
)
{}
fun main
()
{
fun2
(::
containsRegex
,
arrayOf
(
"foo"
))
}