[ruby-core:86619] [Ruby trunk Bug#14700] Endless ranges don't seem to work properly with case statements

From: shannonskipper@...
Date: 2018-04-19 21:48:28 UTC
List: ruby-core #86619
Issue #14700 has been reported by shan (Shannon Skipper).

----------------------------------------
Bug #14700: Endless ranges don't seem to work properly with case statements
https://bugs.ruby-lang.org/issues/14700

* Author: shan (Shannon Skipper)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0dev (2018-04-20 trunk 63199) [x86_64-darwin17]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
I'm running into an unexpected error with this code

~~~ ruby
case 1
when 0..
end
#!> SyntaxError: unexpected keyword_end, expecting keyword_then or ',' or ';' or '\n'
~~~

Thanks!



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next