Files
tsgo/testdata/baselines/reference/submodule/conformance/MemberFunctionDeclaration8_es6.js

23 lines
529 B
TypeScript

//// [tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts] ////
//// [MemberFunctionDeclaration8_es6.ts]
class C {
foo() {
// Make sure we don't think of *bar as the start of a generator method.
if (a) ¬ * bar;
return bar;
}
}
//// [MemberFunctionDeclaration8_es6.js]
"use strict";
class C {
foo() {
// Make sure we don't think of *bar as the start of a generator method.
if (a)
;
* bar;
return bar;
}
}