Actions
Bug #11663
closedSegfault when using multiple keywords if the first keyword is invalid
Description
When loading a method with an invalid keyword (such as one that ends in a question mark), a syntax error occurs as is expected. However, when loading a method with multiple keywords, if the first keyword is invalid then a segmentation fault occurs.
def foo(arg1?:) end #=> syntax error
def foo(arg1?:, arg2) end #=> syntax error (tIDENTIFIER as expected)
def foo(arg1:) end #=> no syntax error
def foo(arg1:, arg2?:) end #=> syntax error
def foo(arg1, arg2?:) end #=> syntax error
def foo(arg1?:, arg2:) end #=> segfault
def foo(arg1?:, arg2?:) end #=> segfault
Actions
Like0
Like0Like0Like0Like0Like0