12 lines
243 B
JavaScript
12 lines
243 B
JavaScript
//// [FunctionDeclaration13_es6.ts]
|
|
function * foo() {
|
|
// Legal to use 'yield' in a type context.
|
|
var v: yield;
|
|
}
|
|
|
|
|
|
//// [FunctionDeclaration13_es6.js]
|
|
function foo() {
|
|
// Legal to use 'yield' in a type context.
|
|
var v;
|
|
}
|