TypeScript/tests/cases/conformance/classes/propertyMemberDeclarations
Titian Cernicova-Dragomir 2484210a00
Gh 41788 incorrect output for esprivate with nested class in esnext (#42663)
* If target:esnext,then useDefineForClassFields: true will now be the default.

* Added error if a private identifier is used in a static a initializer if target:ESNext and useDefineForClassFields:false.

* Added test for new useDefineForClassFields default and error message.

* Fixed tests after changing the default of useDefineForClassFields to true for target esnext

* Fixed code review suggestions.

* Updated error message.

* Added missing static check for the containing property. Fixed other code review issues.
2021-04-07 08:23:16 -07:00
..
memberAccessorDeclarations Allow accessors in ambient class declarations (#32787) 2019-08-09 16:11:25 -07:00
memberFunctionDeclarations Added protected conformance tests 2014-09-23 11:22:38 -07:00
abstractProperty.ts fix(40632): skip emitting abstract members (#40699) 2020-11-04 16:02:17 -08:00
accessibilityModifiers.ts Added protected conformance tests 2014-09-23 11:22:38 -07:00
accessorsOverrideMethod.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
accessorsOverrideProperty.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
accessorsOverrideProperty2.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
accessorsOverrideProperty3.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
accessorsOverrideProperty4.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
accessorsOverrideProperty5.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
accessorsOverrideProperty6.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
accessorsOverrideProperty7.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
assignParameterPropertyToPropertyDeclarationESNext.ts Fix use-before-def with methods on esnext+useDefineForClassFields (#38033) 2020-04-21 08:09:25 -07:00
constructorParameterShadowsOuterScopes.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
constructorParameterShadowsOuterScopes2.ts Class fields w/esnext+[[Define]]:no shadow error (#36405) 2020-01-29 14:47:44 -08:00
defineProperty.ts Fixes broken emit with useDefineForClassFields + private field (#35898) 2020-01-09 10:21:49 -08:00
definePropertyOutputES3.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
derivedUninitializedPropertyDeclaration.ts Allow references to uninitialized ambient properties (#36112) 2020-01-10 10:50:05 -08:00
initializerReferencingConstructorLocals.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
initializerReferencingConstructorParameters.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
instanceMemberInitialization.ts Move class property transform (#31848) 2019-06-17 14:26:42 -07:00
instanceMemberWithComputedPropertyName.ts Fix visitLexicalEnvironment to properly merge hoisted declarations (#33219) 2019-09-03 15:29:41 -07:00
instanceMemberWithComputedPropertyName2.ts Emit computed property temps even w/o init w/useDefineForClassFields (#34406) 2019-10-18 13:23:38 -07:00
optionalMethod.ts strip QuestionToken from MethodDeclaration and PropertyDeclaration emit (#34954) 2019-11-12 10:30:46 -08:00
optionalProperty.ts strip QuestionToken from MethodDeclaration and PropertyDeclaration emit (#34954) 2019-11-12 10:30:46 -08:00
overrideInterfaceProperty.ts Gh 41788 incorrect output for esprivate with nested class in esnext (#42663) 2021-04-07 08:23:16 -07:00
propertyAndAccessorWithSameName.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
propertyAndFunctionWithSameName.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
propertyNamedConstructor.ts Emit error on class fields named "constructor" 2019-04-25 17:30:41 -07:00
propertyNamedPrototype.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
propertyOverridesAccessors.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
propertyOverridesAccessors2.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
propertyOverridesAccessors3.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
propertyOverridesAccessors4.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
propertyOverridesAccessors5.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
propertyOverridesMethod.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
redeclaredProperty.ts Consider class field properties to redeclare parent definitions (#43194) 2021-03-29 17:20:25 -07:00
redefinedPararameterProperty.ts Consider class field properties to redeclare parent definitions (#43194) 2021-03-29 17:20:25 -07:00
staticAndNonStaticPropertiesSameName.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
staticMemberInitialization.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
staticPropertyAndFunctionWithSameName.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
staticPropertyNameConflicts.ts Removing es6 method/property distinction. 2017-01-14 16:30:12 +01:00
staticPropertyNameConflictsInAmbientContext.ts Add tests 2017-01-21 17:09:09 +01:00
strictPropertyInitialization.ts Fixed unreported strict property initialization violations. (#35891) 2020-01-08 15:15:20 -08:00
thisInInstanceMemberInitializer.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
thisPropertyOverridesAccessors.ts Add useDefineForClassFields flag for Set -> Define property declaration (#33509) 2019-09-26 13:25:05 -07:00
twoAccessorsWithSameName.ts Move object literal checks to the grammar checker. 2014-11-18 21:41:07 -08:00
twoAccessorsWithSameName2.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00