tests/cases/compiler/yieldStringLiteral.ts(2,5): error TS1163: A 'yield' expression is only allowed in a generator body.


==== tests/cases/compiler/yieldStringLiteral.ts (1 errors) ====
    function yieldString() {
        yield 'literal';
        ~~~~~
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
    }
    