104 lines
No EOL
1.3 KiB
TypeScript
104 lines
No EOL
1.3 KiB
TypeScript
// @target: ES5
|
|
function foo0() {
|
|
let a = x;
|
|
let x;
|
|
}
|
|
|
|
function foo1() {
|
|
let a = () => x;
|
|
let x;
|
|
}
|
|
|
|
function foo2() {
|
|
let a = function () { return x; }
|
|
let x;
|
|
}
|
|
|
|
function foo3() {
|
|
class X {
|
|
m() { return x;}
|
|
}
|
|
let x;
|
|
}
|
|
|
|
function foo4() {
|
|
let y = class {
|
|
m() { return x; }
|
|
};
|
|
let x;
|
|
}
|
|
|
|
function foo5() {
|
|
let x = () => y;
|
|
let y = () => x;
|
|
}
|
|
|
|
function foo6() {
|
|
function f() {
|
|
return x;
|
|
}
|
|
let x;
|
|
}
|
|
|
|
function foo7() {
|
|
class A {
|
|
a = x;
|
|
}
|
|
let x;
|
|
}
|
|
|
|
function foo8() {
|
|
let y = class {
|
|
a = x;
|
|
}
|
|
let x;
|
|
}
|
|
|
|
function foo9() {
|
|
let y = class {
|
|
static a = x;
|
|
}
|
|
let x;
|
|
}
|
|
|
|
function foo10() {
|
|
class A {
|
|
static a = x;
|
|
}
|
|
let x;
|
|
}
|
|
|
|
function foo11() {
|
|
function f () {
|
|
let y = class {
|
|
static a = x;
|
|
}
|
|
}
|
|
let x;
|
|
}
|
|
|
|
function foo12() {
|
|
function f () {
|
|
let y = class {
|
|
a;
|
|
constructor() {
|
|
this.a = x;
|
|
}
|
|
}
|
|
}
|
|
let x;
|
|
}
|
|
|
|
function foo13() {
|
|
let a = {
|
|
get a() { return x }
|
|
}
|
|
let x
|
|
}
|
|
|
|
function foo14() {
|
|
let a = {
|
|
a: x
|
|
}
|
|
let x
|
|
} |