TypeScript/tests/cases/conformance
Nathan Shively-Sanders a64166de14 isDynamicName skips parentheses for element access
Neither `x[0]` nor `x[(0)]` should be dynamic names. Previously, the
latter was because `isDynamicName` didn't skip parentheses.

Since the binder treats dynamic names in property assignments as
assignment declarations, this incorrectly tried to create a binding for
expressions like `x[(0)] = 1`.

This caused an assert because `x[(0)]` would not take the dynamic name
code path during binding (`hasDynamicName` returned false), but the
normal code path for static names.
2020-06-11 09:08:51 -07:00
..
ambient Add bad test case 2019-04-24 08:44:24 -07:00
async Fix async function block return expr error in js (#37845) 2020-04-08 15:26:56 -07:00
classes Fix temp vars referenced in parameter (#38130) 2020-04-23 20:45:39 -07:00
constEnums fix compiler crash (#25925) 2019-04-25 10:51:36 -07:00
controlFlow Support for/of variables in assertion checking (#37432) 2020-03-17 19:20:56 -07:00
declarationEmit Serialize (noncontextual) keyword named namespace members with export declarations in both declaration emitters (#38982) 2020-06-10 14:42:49 -07:00
decorators Fix metadata serialization for invalid jsdoc types (#37836) 2020-04-08 12:06:40 -07:00
directives Allowed comment directives to be multiline (#38228) 2020-05-06 13:09:29 -07:00
dynamicImport Fix parenthesization rules for yield (#37849) 2020-04-09 13:17:46 -07:00
emitter Reset error variable in downlevel for-await-of loop (#38170) 2020-04-24 14:59:41 -07:00
enums Improve error message for computed enums (#37790) 2020-04-15 13:50:33 -04:00
es6 Fix initialization error when destructuring from object literal that includes a spread assignment (#36865) 2020-02-19 08:28:12 -08:00
es7
es2017
es2018 add support for Lift Template Literal Restriction (#23801) 2020-02-05 08:59:51 -08:00
es2019 Fix crash when exporting+aliasing globalThis inside declare global (#34408) 2019-10-15 14:05:39 -07:00
es2020 Error on missing BigInt in es2020 (#37899) 2020-04-13 08:30:59 -07:00
esnext/logicalAssignment Fix type and simplify code 2020-05-21 10:19:36 +08:00
expressions Make hasCorrectArity handle tuples properly 2020-06-04 23:46:56 -04:00
externalModules Fix longer type-only property access in non-emitting heritage clauses (#37264) 2020-03-09 12:05:36 -07:00
functions Fix regression in name resolution in parameter (#38351) 2020-05-06 12:04:28 -07:00
generators Get contextual type of yield from contextual signature of containing function (#32433) 2019-07-16 17:16:21 -07:00
interfaces getConstraintDeclaration gets the first declaration with a constraint… (#33426) 2019-09-18 13:56:24 -07:00
internalModules
jsdoc Serialize (noncontextual) keyword named namespace members with export declarations in both declaration emitters (#38982) 2020-06-10 14:42:49 -07:00
jsx Improve error range for ts2657 (jsx expr must have parent element), add code fix for it (#37917) 2020-06-01 12:22:44 -07:00
moduleResolution Fix handling of empty 'types', 'typings', etc. fields in package.json (#31539) 2019-05-23 17:19:32 -07:00
parser fix spelling errors (#36523) 2020-01-30 13:39:54 -08:00
references
salsa isDynamicName skips parentheses for element access 2020-06-11 09:08:51 -07:00
scanner Add error message for keywords with escapes in them (#32718) 2019-08-12 16:00:38 -07:00
statements Allow e: unknown in catch arguments 2020-06-10 18:24:20 -04:00
Symbols
types Make hasCorrectArity handle tuples properly 2020-06-04 23:46:56 -04:00
typings Only suggest adding to types if present in compilerOptions 2018-10-30 21:31:22 +01:00
fixSignatureCaching.ts Property assignments in Typescript (#26368) 2018-08-15 15:25:25 -07:00
inferFromBindingPattern.ts Make no inferences from binding patterns with no defaults (#35454) 2019-12-05 07:09:45 -08:00