NI: Fix resolution ambiguity for references returned from lambda
^KT-32267 Fixed
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
534718794c
commit
caf02806d5
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// SKIP_TXT
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// !LANGUAGE: +NewInference
|
||||
|
||||
fun foo(f: () -> Unit) {}
|
||||
fun bar(): Int = 42
|
||||
fun test() {
|
||||
foo {
|
||||
::bar // should be fine
|
||||
}
|
||||
foo {
|
||||
{ "something" } // should be fine
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user