mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
37 lines
458 B
TypeScript
37 lines
458 B
TypeScript
//// [tests/cases/conformance/classes/propertyMemberDeclarations/canFollowGetSetKeyword.ts] ////
|
|
|
|
//// [canFollowGetSetKeyword.ts]
|
|
class A {
|
|
get
|
|
*x() {}
|
|
}
|
|
class B {
|
|
set
|
|
*x() {}
|
|
}
|
|
const c = {
|
|
get
|
|
*x() {}
|
|
};
|
|
const d = {
|
|
set
|
|
*x() {}
|
|
};
|
|
|
|
//// [canFollowGetSetKeyword.js]
|
|
"use strict";
|
|
class A {
|
|
*x() { }
|
|
}
|
|
class B {
|
|
*x() { }
|
|
}
|
|
const c = {
|
|
get,
|
|
*x() { }
|
|
};
|
|
const d = {
|
|
set,
|
|
*x() { }
|
|
};
|