You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
jhass
changed the title
Crash when printing instance variable before initialization
Crash when printing class variable before initialization
Jun 24, 2019
$ crystal test.cr
Unhandled exception: Recursion while initializing class variables and/or constants (Exception)
from /usr/local/Cellar/crystal/0.31.1/src/crystal/once.cr:21:9 in 'once'
from /usr/local/Cellar/crystal/0.31.1/src/crystal/once.cr:48:3 in '__crystal_once'
from ~Hello::hello:read
from test.cr:2:3 in 'hello'
from ~Hello::hello:init
from /usr/local/Cellar/crystal/0.31.1/src/crystal/once.cr:255:3 in 'once'
from /usr/local/Cellar/crystal/0.31.1/src/crystal/once.cr:48:3 in '__crystal_once'
from test.cr:8:22 in '__crystal_main'
from /usr/local/Cellar/crystal/0.31.1/src/crystal/main.cr:97:5 in 'main_user_code'
from /usr/local/Cellar/crystal/0.31.1/src/crystal/main.cr:86:7 in 'main'
from /usr/local/Cellar/crystal/0.31.1/src/crystal/main.cr:106:3 in 'main'
The text was updated successfully, but these errors were encountered: