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
MyHabitatThing.create do
settings anything : Stringend
Causes this error:
There was a problem expanding macro 'create_settings_methods'
Code in macro 'finished'
1 | Habitat.create_settings_methods(MyHabitatThing)
^
Called macro defined in lib/habitat/src/habitat.cr:239:3
239 | macro create_settings_methods(type_with_habitat)
Which expanded to:
> 8 | # Generates a hash using the provided values
> 9 | def self.to_h
> 10 | {
^
Error: for empty hashes use '{} of KeyType => ValueType'
The text was updated successfully, but these errors were encountered:
This code:
Causes this error:
The text was updated successfully, but these errors were encountered: