Project

General

Profile

Bug #21016

Updated by nobu (Nobuyoshi Nakada) 22 days ago

Derived from #21011. #21010. 

 Even with prism: 

 ```ruby 
 # shareable_constant_value: experimental_everything 
 A, = "" 
 p A.frozen? #=> false 
 ``` 

 This `A` should be frozen? 

 Furthermore: 
 ```ruby 
 # shareable_constant_value: experimental_everything 
 A, a = "A", "a" 
 p A.frozen? #=> false 
 p a.frozen? #=> false 
 ``` 

 Should only `A` be frozen but not `a`? 
 Or massign including a constant can freeze everything?

Back