Commit graph

14 commits

Author SHA1 Message Date
okmttdhr 06e05f25e1
Improve error message for computed enums (#37790)
* Add error message for computed enums

* Add test case for computed enums

* Accept baselines

* Fix returned value when error
2020-04-15 13:50:33 -04:00
Klaus Meinhardt 5321dcb09f disallow 'await' and 'yield' in property and enum member initializer (#34892)
* disallow 'await' and 'yield' in property and enum member initializer

* accept baseline changes

* Add a test for #34887

Ensures that this fixes #34887
2019-11-14 17:44:48 -08:00
Andrii Dieiev a34fdb203e Better template literals support in checker (#32064)
* Support template literals in enum declarations

* Support template literals in const enum access

* Support template literals in swith with typeof narrowing

* Support template literals in element access discriminant

* Support template literals in ambient module declaration

* Unify symbols for template literals in computed properties

* Unify expression position checks for template literals

* Support template literals in rename and find all references

* Mark computed properties with template literals as write access

* Inline startsWithQuote
2019-09-27 12:04:13 -07:00
Josh Goldberg 49be51dcf3 Added more helpful syntax error for enum member commas
Switches the error message emitted by the parser to the more specific _"An enum member name must be followed by a ',' or '='."_ when the expected comma doesn't follow the member.
2019-09-09 22:11:56 -04:00
王文璐 a20470e005 disallow nan and infinity in enum member 2018-05-04 10:28:59 +08:00
kingwl 1e1b72892c accept baseline 2018-04-21 12:06:29 +08:00
王文璐 2455405b02 allow string concat in enum member declaration 2018-04-19 21:48:51 +08:00
Anders Hejlsberg 6548bcf104 Add new tests 2017-04-30 16:06:26 -07:00
Anders Hejlsberg 21d8e9a6fd Update old test 2017-04-30 16:06:07 -07:00
Anders Hejlsberg 1f1af2735e Update test 2017-04-29 10:13:35 -07:00
Anders Hejlsberg ea4e3afd98 Fix tests 2016-01-24 13:44:22 -08:00
Wesley Wigham 3b6fa314da new tests 2015-11-23 13:12:34 -08:00
Jason Freeman 6fb3c34681 Conformance coverage for spec change #589 2014-09-05 18:44:49 -07:00
Mohamed Hegazy 214df64e28 Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00