mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
283 B
TypeScript
13 lines
283 B
TypeScript
//// [tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts] ////
|
|
|
|
//// [FunctionDeclaration9_es6.ts]
|
|
function * foo() {
|
|
var v = { [yield]: foo }
|
|
}
|
|
|
|
//// [FunctionDeclaration9_es6.js]
|
|
"use strict";
|
|
function* foo() {
|
|
var v = { [yield]: foo };
|
|
}
|