diff options
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r-- | test/ruby/test_parse.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 819fc7df95..f92bb49e05 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -987,6 +987,9 @@ x = __ENCODING__ begin; assert_syntax_error("def f r:def d; def f 0end", /unexpected/) end; + + assert_syntax_error("def\nf(000)end", /^ \^~~/) + assert_syntax_error("def\nf(&)end", /^ \^/) end def test_method_location_in_rescue |