diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-21 08:56:31 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-21 08:56:31 +0900 |
| commit | 4654db4fdc3c83c6feb7d6e49afa61d341a74af7 (patch) | |
| tree | bf88cf0c977429186d26d1b81a0405f38b0640cd /test/t/syntax.rb | |
| parent | 5f846923675fca5a931d6a317078e34e880d11a5 (diff) | |
| parent | 9eaddfab4455513ef6f3dbb89eca80a7798bb49a (diff) | |
| download | mruby-4654db4fdc3c83c6feb7d6e49afa61d341a74af7.tar.gz mruby-4654db4fdc3c83c6feb7d6e49afa61d341a74af7.zip | |
Merge pull request #2096 from nobu/def_in_cmdarg
Def in cmdarg
Diffstat (limited to 'test/t/syntax.rb')
| -rw-r--r-- | test/t/syntax.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb index d761b1991..2adfbc8ab 100644 --- a/test/t/syntax.rb +++ b/test/t/syntax.rb @@ -265,3 +265,10 @@ assert('parenthesed do-block in cmdarg') do result = x.test (proc do :ok; end) assert_equal :ok, result end + +assert('method definition in cmdarg') do + if false + bar def foo; self.each do end end + end + true +end |
