TypeScript/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13_es6.ts
2016-11-17 23:17:42 -08:00

5 lines
105 B
TypeScript

// @target: es6
function * foo() {
// Legal to use 'yield' in a type context.
var v: yield;
}