File: getJavaScriptSyntacticDiagnostics02.baseline

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (32 lines) | stat: -rw-r--r-- 1,447 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Syntactic Diagnostics for file '/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics02.ts':
/tests/cases/fourslash/server/b.js(2,8): error TS8010: Type annotations can only be used in TypeScript files.
/tests/cases/fourslash/server/b.js(3,17): error TS8010: Type annotations can only be used in TypeScript files.
/tests/cases/fourslash/server/b.js(4,5): error TS1389: 'var' is not allowed as a variable declaration name.
/tests/cases/fourslash/server/b.js(4,9): error TS1134: Variable declaration expected.
/tests/cases/fourslash/server/b.js(4,11): error TS1134: Variable declaration expected.


==== /tests/cases/fourslash/server/b.js (5 errors) ====
    var a = "a";
    var b: boolean = true;
           ~~~~~~~
!!! error TS8010: Type annotations can only be used in TypeScript files.
    function foo(): string { }
                    ~~~~~~
!!! error TS8010: Type annotations can only be used in TypeScript files.
    var var = "c";
        ~~~
!!! error TS1389: 'var' is not allowed as a variable declaration name.
            ~
!!! error TS1134: Variable declaration expected.
              ~~~
!!! error TS1134: Variable declaration expected.

Semantic Diagnostics for file '/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics02.ts':


==== /tests/cases/fourslash/server/b.js (0 errors) ====
    var a = "a";
    var b: boolean = true;
    function foo(): string { }
    var var = "c";