[FIR] Handle default parameters when checking callable reference type
#KT-36759 Fixed
This commit is contained in:
+1
-1
@@ -13,6 +13,6 @@ fun bar2(body: (String, Int) -> String): String {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
<!INAPPLICABLE_CANDIDATE!>bar1<!>(::foo)
|
||||
bar1(::foo)
|
||||
bar2(::foo)
|
||||
}
|
||||
+1
-1
@@ -13,6 +13,6 @@ fun bar2(body: (String, Int) -> String): String {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
<!INAPPLICABLE_CANDIDATE!>bar1<!>(::foo)
|
||||
bar1(::foo)
|
||||
bar2(::foo)
|
||||
}
|
||||
+1
-1
@@ -26,5 +26,5 @@ fun test() {
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>B::bas<!>
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>::fas<!>
|
||||
::fas
|
||||
}
|
||||
Reference in New Issue
Block a user