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