27 lines
803 B
Plaintext
27 lines
803 B
Plaintext
==== tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens16.ts (9 errors) ====
|
|
foo(): Bar { }
|
|
~
|
|
!!! error TS1005: ';' expected.
|
|
~
|
|
!!! error TS1005: ';' expected.
|
|
~~~
|
|
!!! error TS2304: Cannot find name 'foo'.
|
|
~~~
|
|
!!! error TS2304: Cannot find name 'Bar'.
|
|
function Foo () # { }
|
|
|
|
!!! error TS1127: Invalid character.
|
|
~~~
|
|
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
|
|
4+:5
|
|
~
|
|
!!! error TS1109: Expression expected.
|
|
module M {
|
|
function a(
|
|
: T) { }
|
|
~
|
|
!!! error TS1138: Parameter declaration expected.
|
|
}
|
|
var x =
|
|
|
|
!!! error TS1109: Expression expected. |