TypeScript/tests/baselines/reference/augmentedTypesClass4.js

21 lines
443 B
TypeScript
Raw Normal View History

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]
//// class then class
2014-07-13 01:04:16 +02:00
var c3 = (function () {
function c3() {
}
c3.prototype.foo = function () { };
2014-07-13 01:04:16 +02:00
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 () { };
2014-07-13 01:04:16 +02:00
return c3;
})(); // error