Allow to process return statements without parent KtDeclaration (EA-70883)
This commit is contained in:
committed by
Nikolay Krasko
parent
1e50847985
commit
938a435346
@@ -0,0 +1,4 @@
|
||||
fun foo(): Int? {
|
||||
val a: Int? = 1
|
||||
<caret>return a
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<error descr="[RETURN_NOT_ALLOWED] 'return' is not allowed here">return a</error>
|
||||
Reference in New Issue
Block a user