2014-07-13 01:04:16 +02:00
|
|
|
//// [augmentedTypesClass2a.ts]
|
|
|
|
//// class then function
|
2014-10-01 02:15:18 +02:00
|
|
|
class c2 { public foo() { } } // error
|
2014-07-13 01:04:16 +02:00
|
|
|
function c2() { } // error
|
|
|
|
var c2 = () => { }
|
|
|
|
|
|
|
|
//// [augmentedTypesClass2a.js]
|
2014-08-14 15:42:18 +02:00
|
|
|
//// class then function
|
2014-07-13 01:04:16 +02:00
|
|
|
var c2 = (function () {
|
|
|
|
function c2() {
|
|
|
|
}
|
|
|
|
c2.prototype.foo = function () {
|
|
|
|
};
|
|
|
|
return c2;
|
2014-10-01 02:15:18 +02:00
|
|
|
})(); // error
|
2014-07-13 01:04:16 +02:00
|
|
|
function c2() {
|
2014-08-15 22:18:54 +02:00
|
|
|
} // error
|
2014-07-13 01:04:16 +02:00
|
|
|
var c2 = function () {
|
|
|
|
};
|