Merge pull request #10928 from Microsoft/addTestFix10625

[Release-2.0] Add tests and baselines
This commit is contained in:
Yui
2016-09-14 16:31:27 -07:00
committed by GitHub
8 changed files with 196 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
// @declaration: true
// @skipDefaultLibCheck: true
// @Filename: 0.ts
{
type Data = string | boolean;
let obj: Data = true;
}
export { }
// @Filename: 1.ts
var x = "hi" || 5;
export default x;

View File

@@ -0,0 +1,16 @@
// @declaration: true
// @skipDefaultLibCheck: true
// @Filename: 0.ts
{
type Data = string | boolean;
let obj: Data = true;
}
export { }
// @Filename: 1.ts
let v = "str" || true;
function bar () {
return v;
}
export { v, bar }