TypeScript/tests/baselines/reference/parser553699.errors.txt

17 lines
818 B
Plaintext
Raw Normal View History

2015-04-09 23:46:02 +02:00
tests/cases/conformance/parser/ecmascript5/RegressionTests/parser553699.ts(3,21): error TS1216: Type expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode.
2015-04-09 02:49:14 +02:00
tests/cases/conformance/parser/ecmascript5/RegressionTests/parser553699.ts(3,21): error TS2304: Cannot find name 'public'.
2015-04-09 02:49:14 +02:00
==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser553699.ts (2 errors) ====
2014-07-13 01:04:16 +02:00
class Foo {
constructor() { }
public banana (x: public) { }
~~~~~~
2015-04-09 23:46:02 +02:00
!!! error TS1216: Type expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode.
2015-04-09 02:49:14 +02:00
~~~~~~
!!! error TS2304: Cannot find name 'public'.
2014-07-13 01:04:16 +02:00
}
class Bar {
constructor(c: Bar) { }
}