TypeScript/tests/cases/conformance/classes
Nathan Shively-Sanders 369900bb07
Emit defineProperty calls before param prop assignments (#34987)
* Emit defineProperty calls before param prop assignments

Note that I restricted this to --useDefineForClassFields is true.
Nothing changes when it's off. I think this is the correct fix for a
patch release.

However, in principal there's nothing wrong with moving parameter
property initialisation after property declaration initialisation. It
would be Extremely Bad and Wrong to rely on this working:

```ts
class C {
  p = this.q // what is q?
  constructor(public q: number) { }
}
```

But today it does, and probably somebody relies on it without knowing.

* Put parameter property initialiser into defineProperty's value

* Combine ES5/ESNext into one test
2019-11-22 15:37:24 -08:00
..
classDeclarations
classExpressions
constructorDeclarations Parse quoted constructors as constructors, not methods (#31949) 2019-07-12 14:01:57 -07:00
indexMemberDeclarations
members Error when destructuring private property in a parameter (#28562) 2018-11-16 12:47:05 -08:00
methodDeclarations More tests for super.method call chain, improve vary-by (#35013) 2019-11-18 18:03:37 -08:00
propertyMemberDeclarations Emit defineProperty calls before param prop assignments (#34987) 2019-11-22 15:37:24 -08:00
awaitAndYieldInProperty.ts disallow 'await' and 'yield' in property and enum member initializer (#34892) 2019-11-14 17:44:48 -08:00
classExpression.ts
mixinAccessModifiers.ts #27716: fix protected methods for intersection fo generic classes 2018-10-12 18:23:07 +03:00
mixinClassesAnnotated.ts
mixinClassesAnonymous.ts
mixinClassesMembers.ts
nestedClassDeclaration.ts