TypeScript/tests/baselines/reference/parserStatementIsNotAMemberVariableDeclaration1.errors.txt

19 lines
832 B
Plaintext
Raw Normal View History

tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts(1,1): error TS1108: A 'return' statement can only be used within a function body.
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts(6,5): error TS2304: Cannot find name 'private'.
2014-09-05 22:05:36 +02:00
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts (2 errors) ====
2014-07-13 01:04:16 +02:00
return {
~~~~~~
!!! error TS1108: A 'return' statement can only be used within a function body.
2014-07-13 01:04:16 +02:00
"set": function (key, value) {
// 'private' should not be considered a member variable here.
private[key] = value;
2014-09-05 22:05:36 +02:00
~~~~~~~
!!! error TS2304: Cannot find name 'private'.
2014-07-13 01:04:16 +02:00
}
};