Skip to content

Instantly share code, notes, and snippets.

View ruxxzebre's full-sized avatar
🎯
Focusing

ruxxzebre ruxxzebre

🎯
Focusing
View GitHub Profile
@ruxxzebre
ruxxzebre / protocol_issue.ex
Last active September 10, 2022 20:30
Demo of issue with defprotocol
defprotocol Animal do
@fallback_to_any true
def warn(arg, arg2)
def greet(arg)
def speak(arg)
# Here I'm getting
# == Compilation error in file lib/animal.ex ==
# ** (CompileError) lib/animal.ex:6: undefined function defdelegate/2 (there is no such import)
# Then go to line 48
#