Merge pull request #6291 from RyanCavanaugh/fix6280

Issue correct errors for missing JSX closing tags
This commit is contained in:
Ryan Cavanaugh
2016-01-05 10:23:49 -08:00
9 changed files with 217 additions and 34 deletions
@@ -0,0 +1,28 @@
//@jsx: preserve
//@filename: file.tsx
declare module JSX {
interface Element { }
interface IntrinsicElements {
[s: string]: any;
}
}
// @filename: Error1.tsx
// Issue error about missing span closing tag, not missing div closing tag
let x1 = <div><span></div>;
// @filename: Error2.tsx
let x2 = <div></span>;
// @filename: Error3.tsx
let x3 = <div>;
// @filename: Error4.tsx
let x4 = <div><div></span>;
// @filename: Error5.tsx
let x5 = <div><span>