Check noinline annotation on non-local return processing
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// !DIAGNOSTICS: -NOTHING_TO_INLINE
|
||||
fun main(args: Array<String>) {
|
||||
test {
|
||||
<!RETURN_NOT_ALLOWED!>return<!>
|
||||
}
|
||||
}
|
||||
|
||||
inline fun test(noinline lambda: () -> Unit) {
|
||||
lambda()
|
||||
}
|
||||
Reference in New Issue
Block a user