Files
tsgo/testdata/baselines/reference/submoduleAccepted/conformance/parserStatementIsNotAMemberVariableDeclaration1(alwaysstrict=true).errors.txt.diff

28 lines
1.7 KiB
Diff

--- old.parserStatementIsNotAMemberVariableDeclaration1(alwaysstrict=true).errors.txt
+++ new.parserStatementIsNotAMemberVariableDeclaration1(alwaysstrict=true).errors.txt
@@= skipped -0, +0 lines =@@
-error TS-1: Pre-emit (2) and post-emit (3) diagnostic counts do not match! This can indicate that a semantic _error_ was added by the emit resolver - such an error may not be reflected on the command line or in the editor, but may be captured in a baseline here!
parserStatementIsNotAMemberVariableDeclaration1.ts(1,1): error TS1108: A 'return' statement can only be used within a function body.
parserStatementIsNotAMemberVariableDeclaration1.ts(6,5): error TS1212: Identifier expected. 'private' is a reserved word in strict mode.
-
-
-!!! error TS-1: Pre-emit (2) and post-emit (3) diagnostic counts do not match! This can indicate that a semantic _error_ was added by the emit resolver - such an error may not be reflected on the command line or in the editor, but may be captured in a baseline here!
-!!! related TS-1: The excess diagnostics are:
-!!! related TS2304 parserStatementIsNotAMemberVariableDeclaration1.ts:6:5: Cannot find name 'private'.
-==== parserStatementIsNotAMemberVariableDeclaration1.ts (2 errors) ====
+parserStatementIsNotAMemberVariableDeclaration1.ts(6,5): error TS2304: Cannot find name 'private'.
+
+
+==== parserStatementIsNotAMemberVariableDeclaration1.ts (3 errors) ====
return {
~~~~~~
!!! error TS1108: A 'return' statement can only be used within a function body.
@@= skipped -16, +13 lines =@@
private[key] = value;
~~~~~~~
!!! error TS1212: Identifier expected. 'private' is a reserved word in strict mode.
+ ~~~~~~~
+!!! error TS2304: Cannot find name 'private'.
}