2014-07-15 23:24:44 +02:00
|
|
|
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts (9 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
class C {
|
|
|
|
where(filter: Iterator<T, boolean>): Query<T> {
|
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
|
|
!!! Cannot find name 'Iterator'.
|
|
|
|
~~~~~~~~
|
|
|
|
!!! Cannot find name 'Query'.
|
|
|
|
return fromDoWhile(test =>
|
|
|
|
~~~~~~~~~~~
|
|
|
|
!!! Cannot find name 'fromDoWhile'.
|
|
|
|
var index = 0;
|
|
|
|
~~~
|
|
|
|
!!! Expression expected.
|
|
|
|
return this.doWhile((item, i) => filter(item, i) ? test(item, index++) : true);
|
|
|
|
~~~~~~~
|
|
|
|
!!! Property 'doWhile' does not exist on type 'C'.
|
|
|
|
~~~~
|
|
|
|
!!! Cannot find name 'test'.
|
|
|
|
});
|
|
|
|
~
|
|
|
|
!!! Unexpected token. A constructor, method, accessor, or property was expected.
|
|
|
|
~
|
|
|
|
!!! Unexpected token. A constructor, method, accessor, or property was expected.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
~
|
|
|
|
!!! Declaration or statement expected.
|