Project

General

Profile

Bug #11099

Updated by nobu (Nobuyoshi Nakada) about 9 years ago

In ruby 2.2, when i try 

 ~~~ruby ~~~ 
 def assert(*args, &blk) 

 end 

 assert(a > 0 and a < 1) 
 ~~~ 

 it will raise  

 ~~~ 
 Uncaught exception: /home/roroco/Dropbox/rbs/ro_btc/ex/ex.rb:5: syntax error, unexpected keyword_and, expecting ')' 
 assert(a > 0 and a < 1) 
 ~~~

Back