Exclude functional types for the warning reporting about implicitly inferred a type parameter to Nothing

This commit is contained in:
victor.petukhov
2019-05-24 18:22:05 +03:00
parent 66795db042
commit bfeb9537ee
4 changed files with 19 additions and 3 deletions
@@ -52,7 +52,7 @@ fun testLoopLabelInReturn(xs: List<Int>) {
fun testValLabelInReturn() {
<!REDUNDANT_LABEL_WARNING!>L@<!> val fn = { <!NOT_A_FUNCTION_LABEL!>return@L<!> }
<!IMPLICIT_NOTHING_AS_TYPE_PARAMETER!>fn<!>()
fn()
}
fun testHighOrderFunctionCallLabelInReturn() {
@@ -52,7 +52,7 @@ fun testLoopLabelInReturn(xs: List<Int>) {
fun testValLabelInReturn() {
<!REDUNDANT_LABEL_WARNING!>L@<!> val fn = { <!NOT_A_FUNCTION_LABEL_WARNING!>return@L<!> }
<!IMPLICIT_NOTHING_AS_TYPE_PARAMETER!>fn<!>()
fn()
}
fun testHighOrderFunctionCallLabelInReturn() {