2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ModuleElements/parserErrorRecovery_ModuleElement1.ts (4 errors) ====
|
|
|
|
return foo;
|
2014-07-23 01:36:53 +02:00
|
|
|
~~~~~~
|
|
|
|
!!! A 'return' statement can only be used within a function body.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
~
|
|
|
|
!!! Declaration or statement expected.
|
|
|
|
return bar;
|
2014-07-23 01:36:53 +02:00
|
|
|
~~~~~~
|
|
|
|
!!! A 'return' statement can only be used within a function body.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
~
|
|
|
|
!!! Declaration or statement expected.
|