22 lines
494 B
TypeScript
22 lines
494 B
TypeScript
//// [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]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.prototype.foo = function () {
|
|
// Make sure we don't think of *bar as the start of a generator method.
|
|
if (a)
|
|
;
|
|
* bar;
|
|
return bar;
|
|
};
|
|
return C;
|
|
})();
|