Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
callableReference
/
genericCallWithReferenceAgainstVarargAndKFunction.kt
blob: 6dbcb294ba1bdaee3d04f72cb1eb48be84f8c46a [
file
] [
log
] [
blame
]
// 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"
))
}