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
When referencing a class variable in the assignment of an instance variable, the crystal compiler errors with BUG: @@next_id = @@next_id + 1 at /testing/test.cr:3:15 has no type (Exception). The code that produces this is below.
asterite
changed the title
Crystal compiler bug on referencing class variables
Crash when referencing class variable in instance variable initializer
Aug 27, 2018
When referencing a class variable in the assignment of an instance variable, the crystal compiler errors with
BUG:
@@next_id = @@next_id + 1at /testing/test.cr:3:15 has no type (Exception)
. The code that produces this is below.I'm on openSUSE Leap 42.3, and the output of
crystal -v
is included below.The text was updated successfully, but these errors were encountered: