2017-06-05 23:23:39 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// https://github.com/Microsoft/TypeScript/issues/16065
|
|
|
|
|
|
|
|
// @jsx: react
|
|
|
|
// @jsxFactory: factory
|
|
|
|
|
|
|
|
// @Filename: /factory.ts
|
|
|
|
////export function factory() { return {}; }
|
|
|
|
////declare global {
|
|
|
|
//// namespace JSX {
|
|
|
|
//// interface Element {}
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
// @Filename: /a.tsx
|
|
|
|
////[|<div/>|]
|
|
|
|
|
|
|
|
goTo.file("/a.tsx");
|
2018-02-07 21:33:16 +01:00
|
|
|
verify.importFixAtPosition([
|
|
|
|
`import { factory } from "./factory";
|
|
|
|
|
|
|
|
<div/>`
|
|
|
|
]);
|