2014-07-16 02:21:43 +02:00
|
|
|
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts (5 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;
|
|
|
|
~~~
|
2014-07-16 02:21:43 +02:00
|
|
|
!!! '{' expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
return this.doWhile((item, i) => filter(item, i) ? test(item, index++) : true);
|
|
|
|
~~~~~~~
|
|
|
|
!!! Property 'doWhile' does not exist on type 'C'.
|
|
|
|
});
|
|
|
|
}
|
2014-07-16 02:21:43 +02:00
|
|
|
}
|