2014-07-13 01:04:16 +02:00
|
|
|
//// [unknownSymbols2.ts]
|
|
|
|
module M {
|
|
|
|
var x: asdf;
|
|
|
|
var y = x + asdf;
|
|
|
|
var z = <asdf>x; // should be an error
|
|
|
|
if (asdf) {
|
|
|
|
}
|
|
|
|
else if (qwerty) {
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
}
|
|
|
|
catch (asdf) { // no error
|
|
|
|
}
|
|
|
|
|
|
|
|
switch (asdf) {
|
|
|
|
case qwerty:
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
var a = () => asdf;
|
|
|
|
var b = (asdf) => { return qwerty };
|
|
|
|
|
|
|
|
module N {
|
|
|
|
var x = 1;
|
|
|
|
}
|
|
|
|
import c = N;
|
|
|
|
import d = asdf;
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [unknownSymbols2.js]
|
|
|
|
var M;
|
|
|
|
(function (M) {
|
|
|
|
var x;
|
|
|
|
var y = x + asdf;
|
2014-08-15 22:18:54 +02:00
|
|
|
var z = x; // should be an error
|
2014-07-13 01:04:16 +02:00
|
|
|
if (asdf) {
|
|
|
|
}
|
|
|
|
else if (qwerty) {
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
}
|
|
|
|
catch (asdf) {
|
|
|
|
}
|
|
|
|
switch (asdf) {
|
|
|
|
case qwerty:
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var a = function () { return asdf; };
|
2015-02-07 05:03:24 +01:00
|
|
|
var b = function (asdf) { return qwerty; };
|
2014-07-13 01:04:16 +02:00
|
|
|
var N;
|
|
|
|
(function (N) {
|
|
|
|
var x = 1;
|
|
|
|
})(N || (N = {}));
|
|
|
|
})(M || (M = {}));
|