mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
13 lines
209 B
TypeScript
13 lines
209 B
TypeScript
|
//@target: ES6
|
||
|
|
||
|
class Foo {
|
||
|
[Symbol.isConcatSpreadable]() {
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class Bar extends Foo {
|
||
|
[Symbol.isConcatSpreadable]() {
|
||
|
return super[Symbol.isConcatSpreadable]();
|
||
|
}
|
||
|
}
|