17 lines
386 B
TypeScript
17 lines
386 B
TypeScript
//// [augmentedTypesClass2a.ts]
|
|
//// class then function
|
|
class c2 { public foo() { } } // error
|
|
function c2() { } // error
|
|
var c2 = () => { }
|
|
|
|
//// [augmentedTypesClass2a.js]
|
|
//// class then function
|
|
var c2 = (function () {
|
|
function c2() {
|
|
}
|
|
c2.prototype.foo = function () { };
|
|
return c2;
|
|
}()); // error
|
|
function c2() { } // error
|
|
var c2 = function () { };
|