 test "error if `yield` occurs outside of a function", ->
   throws -> CoffeeScript.compile 'yield 1'
 
-test "error if `yield from` occurs outside of a function", ->
-  throws -> CoffeeScript.compile 'yield from 1'
+test "`yield` by itself not at the end of a function errors", ->
+  throws -> CoffeeScript.compile 'x = -> yield; return'
 
 test "`yield from` support", ->
   x = do ->


  y = x.next 1
  ok y.value is 3 and y.done is true

test "symbolic operators has precedence over the `yield`", ->
  symbolic   = '+ - * / << >> & | || && ** ^ // or and'.split ' '

    mapped  = CoffeeScript.eval "(arr) ->       (#{expression} for i in arr)"

    arrayEq mapped(values), collect yielded values
