5 lines
No EOL
245 B
Text
5 lines
No EOL
245 B
Text
==== tests/cases/compiler/asiReturn.ts (1 errors) ====
|
|
// This should be an error for using a return outside a function, but ASI should work properly
|
|
return
|
|
~~~~~~
|
|
!!! A 'return' statement can only be used within a function body. |