Project

General

Profile

Bug #16140

Updated by sawa (Tsuyoshi Sawada) almost 6 years ago


 I not sure if it's a bug. But maybe it is. it's should be. 

 ``` ruby 
 a =    2 
 puts a 

 a = "two" 
 puts a 

 => 2 
 => two 
 ``` 

 
 I was expecting it to produce an error. After all, all Ruby is supposed to be a dynamically typed types language. Clearly for variables, the variable it's not the case. if it's not a bug, it is possibly an option to be added to the interpreter. 

Back