[FIR] Implement IMPLICIT_NOTHING_*_TYPE diagnostics
This commit is contained in:
committed by
Space Team
parent
0e84bf2053
commit
1b42298025
+3
-3
@@ -24,7 +24,7 @@ fun testResultOfLambda2() =
|
||||
}
|
||||
}
|
||||
|
||||
fun testReturn1() =
|
||||
fun <!IMPLICIT_NOTHING_RETURN_TYPE!>testReturn1<!>() =
|
||||
run {
|
||||
return <!RETURN_TYPE_MISMATCH!>when {
|
||||
true -> 42
|
||||
@@ -32,7 +32,7 @@ fun testReturn1() =
|
||||
}<!>
|
||||
}
|
||||
|
||||
fun testReturn2() =
|
||||
fun <!IMPLICIT_NOTHING_RETURN_TYPE!>testReturn2<!>() =
|
||||
run {
|
||||
return <!RETURN_TYPE_MISMATCH!>when {
|
||||
true -> 42
|
||||
@@ -80,4 +80,4 @@ val testUsage5: Any get() =
|
||||
when {
|
||||
true -> 42
|
||||
else -> println()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user