summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-04 07:10:05 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-04 07:10:05 +0000
commit0fc597f29c663bd785d3a7868a95340eecc7dc03 (patch)
treeaf4df9d452153618097e911313b2de622ff5295d /win32
parent8bda94f78c959fbbcc17a99553b0c22396cabb96 (diff)
check and show a warning for incorrect yield.
* compile.c (check_yield_place): this function check the yield location. * show a warning if yield in `class` syntax. [Feature #15575] * do strict check for toplevel `yield`. Without this patch, `1.times{ yield }` in toplevel is valid-syntax (raise LocalJumpError at runtime) although toplevel simple `yield` is not valid syntax. This patch make them syntax error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
0 files changed, 0 insertions, 0 deletions