summaryrefslogtreecommitdiff
path: root/test/ruby/test_syntax.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r--test/ruby/test_syntax.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 00e21606c6..d36cbb0638 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -530,6 +530,12 @@ eom
assert_syntax_error(code, /def n "\u{2208}"; end/, bug10114)
end
+ def test_bad_kwarg
+ bug10545 = '[ruby-dev:48742] [Bug #10545]'
+ src = 'def foo(A: a) end'
+ assert_syntax_error(src, /formal argument/, bug10545)
+ end
+
private
def not_label(x) @result = x; @not_label ||= nil end