mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
715 B
Plaintext
19 lines
715 B
Plaintext
computedPropertyNames2_ES6.ts(6,9): error TS2378: A 'get' accessor must return a value.
|
|
computedPropertyNames2_ES6.ts(8,16): error TS2378: A 'get' accessor must return a value.
|
|
|
|
|
|
==== computedPropertyNames2_ES6.ts (2 errors) ====
|
|
var methodName = "method";
|
|
var accessorName = "accessor";
|
|
class C {
|
|
[methodName]() { }
|
|
static [methodName]() { }
|
|
get [accessorName]() { }
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS2378: A 'get' accessor must return a value.
|
|
set [accessorName](v) { }
|
|
static get [accessorName]() { }
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS2378: A 'get' accessor must return a value.
|
|
static set [accessorName](v) { }
|
|
} |