TypeScript/tests/cases/conformance/jsx/commentEmittingInPreserveJsx1.tsx

36 lines
524 B
TypeScript
Raw Normal View History

2017-05-23 19:26:07 +02:00
// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
2017-05-23 19:26:07 +02:00
// @libFiles: react.d.ts,lib.d.ts
import React = require('react');
<div>
// Not Comment
</div>;
<div>
// Not Comment
{
//Comment just Fine
}
// Another not Comment
</div>;
<div>
// Not Comment
{
//Comment just Fine
"Hi"
}
// Another not Comment
</div>;
<div>
/* Not Comment */
{
//Comment just Fine
"Hi"
}
</div>;