mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
404 B
Plaintext
13 lines
404 B
Plaintext
asyncGetter_es6.ts(2,3): error TS1042: 'async' modifier cannot be used here.
|
|
asyncGetter_es6.ts(2,13): error TS2378: A 'get' accessor must return a value.
|
|
|
|
|
|
==== asyncGetter_es6.ts (2 errors) ====
|
|
class C {
|
|
async get foo() {
|
|
~~~~~
|
|
!!! error TS1042: 'async' modifier cannot be used here.
|
|
~~~
|
|
!!! error TS2378: A 'get' accessor must return a value.
|
|
}
|
|
} |