mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
529 B
TypeScript
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;
|
|
}
|
|
}
|