#Type mismatch help

1 messages · Page 1 of 1 (latest)

wispy fulcrum
#

I genuinely can't figure out what's wrong this this code. It looks like it wants a function to be returned instead of a dict and I have no idea why. Can anyone help?

deft mica
#

dict.new is a function, you probably meant to call it like this: dict.new()

wispy fulcrum
#

ooooooh thanks! I'm used to calling functions without the parens in pipelines so I got confused.

inland sail
#

I run into this all the time :3

#

if you're on neovim, using K lets you hover the type of something, which is great for finding bugs like these

#

I wish the gleam error was better for situations like this though