18 lines
395 B
TypeScript
18 lines
395 B
TypeScript
//// [unqualifiedCallToClassStatic1.ts]
|
|
class Vector {
|
|
static foo = () => {
|
|
// 'foo' cannot be called in an unqualified manner.
|
|
foo();
|
|
}
|
|
}
|
|
|
|
//// [unqualifiedCallToClassStatic1.js]
|
|
var Vector = (function () {
|
|
function Vector() {
|
|
}
|
|
Vector.foo = function () {
|
|
// 'foo' cannot be called in an unqualified manner.
|
|
foo();
|
|
};
|
|
return Vector;
|
|
})();
|