TypeScript/tests/cases/compiler/jsxFactoryMissingErrorInsideAClass.ts
Mohamed Hegazy 3fb481ff40
Multiple telemetry debug assert failure fixes (#21886)
* Use getAllowSyntheticDefaultImports to access `--allowSyntheticDefaultImport` value

* Fix #21788: Handel missing imporotClause case

* Fix #21789: Add a defensive check to forgottenThisPropertyAccess code fix for non-identifier locations

* Do not suggest prefix with `this` if the name we are looking for is diffrent from the errorLocation

* Fix #21796: Handel case of unknown module

* Add check to capture more info for #21800

* Fix #21807: check for symbol before looking up its flags

* Fix #21812: Gracefully fail if the token is not `this`.
2018-02-12 10:34:17 -08:00

12 lines
179 B
TypeScript

//@jsx: react
//@target: es6
//@module: commonjs
//@reactNamespace: factory
//@filename: test.tsx
export class C {
factory() {
return <div></div>;
}
}