mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
352 B
TypeScript
16 lines
352 B
TypeScript
//// [tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13_es6.ts] ////
|
|
|
|
//// [FunctionDeclaration13_es6.ts]
|
|
function * foo() {
|
|
// Legal to use 'yield' in a type context.
|
|
var v: yield;
|
|
}
|
|
|
|
|
|
//// [FunctionDeclaration13_es6.js]
|
|
"use strict";
|
|
function* foo() {
|
|
// Legal to use 'yield' in a type context.
|
|
var v;
|
|
}
|