mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
37 lines
983 B
TypeScript
37 lines
983 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames30_ES6.ts] ////
|
|
|
|
//// [computedPropertyNames30_ES6.ts]
|
|
class Base {
|
|
}
|
|
class C extends Base {
|
|
constructor() {
|
|
super();
|
|
() => {
|
|
var obj = {
|
|
// Ideally, we would capture this. But the reference is
|
|
// illegal, and not capturing this is consistent with
|
|
//treatment of other similar violations.
|
|
[(super(), "prop")]() { }
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
//// [computedPropertyNames30_ES6.js]
|
|
"use strict";
|
|
class Base {
|
|
}
|
|
class C extends Base {
|
|
constructor() {
|
|
super();
|
|
() => {
|
|
var obj = {
|
|
// Ideally, we would capture this. But the reference is
|
|
// illegal, and not capturing this is consistent with
|
|
//treatment of other similar violations.
|
|
[(super(), "prop")]() { }
|
|
};
|
|
};
|
|
}
|
|
}
|