Skip to content

Instantly share code, notes, and snippets.

@hinrik

hinrik/set.cr Secret

Created January 14, 2017 10:07
Show Gist options
  • Save hinrik/3e7ba168e6a0b3acf22cc36e1a323044 to your computer and use it in GitHub Desktop.
Save hinrik/3e7ba168e6a0b3acf22cc36e1a323044 to your computer and use it in GitHub Desktop.
hash = {} of Int32 => Set(Int32)
hash[23] = Set(Int32)
# Error in set.cr:2: no overload matches 'Hash(Int32, Set(Int32))#[]=' with types Int32, Set(Int32):Class
# Overloads are:
# - Hash(K, V)#[]=(key : K, value : V)
#
# hash[23] = Set(Int32)
# ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment