TypeScript/tests/baselines/reference/propertyWrappedInTry.errors.txt
Cyrus Najmabadi f1a2e41a8a Sort diagnostics in our baseline output.
This was we don't get noisy baselines just because a different phase of the compiler reported
the diagnostic.

This helps with Yui's refactoring work to move grammar checks into the type checker.
2014-12-16 15:56:56 -08:00

46 lines
1.7 KiB
Plaintext

tests/cases/compiler/propertyWrappedInTry.ts(3,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
tests/cases/compiler/propertyWrappedInTry.ts(5,9): error TS1129: Statement expected.
tests/cases/compiler/propertyWrappedInTry.ts(5,16): error TS2304: Cannot find name 'bar'.
tests/cases/compiler/propertyWrappedInTry.ts(5,22): error TS2304: Cannot find name 'someInitThatMightFail'.
tests/cases/compiler/propertyWrappedInTry.ts(11,5): error TS1128: Declaration or statement expected.
tests/cases/compiler/propertyWrappedInTry.ts(11,12): error TS2304: Cannot find name 'baz'.
tests/cases/compiler/propertyWrappedInTry.ts(11,18): error TS1005: ';' expected.
tests/cases/compiler/propertyWrappedInTry.ts(17,1): error TS1128: Declaration or statement expected.
==== tests/cases/compiler/propertyWrappedInTry.ts (8 errors) ====
class Foo {
try {
~~~
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
public bar = someInitThatMightFail();
~~~~~~
!!! error TS1129: Statement expected.
~~~
!!! error TS2304: Cannot find name 'bar'.
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2304: Cannot find name 'someInitThatMightFail'.
} catch(e) {}
public baz() {
~~~~~~
!!! error TS1128: Declaration or statement expected.
~~~
!!! error TS2304: Cannot find name 'baz'.
~
!!! error TS1005: ';' expected.
return this.bar; // doesn't get rewritten to Foo.bar.
}
}
~
!!! error TS1128: Declaration or statement expected.