TypeScript/tests/baselines/reference/symbolProperty7.js

21 lines
324 B
TypeScript
Raw Normal View History

2015-02-04 00:52:06 +01:00
//// [symbolProperty7.ts]
class C {
[Symbol()] = 0;
[Symbol()]: number;
[Symbol()]() { }
get [Symbol()]() {
return 0;
}
}
//// [symbolProperty7.js]
2015-03-16 05:33:39 +01:00
class C {
constructor() {
2015-02-04 00:52:06 +01:00
this[Symbol()] = 0;
}
[Symbol()]() { }
2015-03-16 05:33:39 +01:00
get [Symbol()]() {
return 0;
}
}