Open zfnmxt opened 5 years ago
It expects something of type 'element' and you are giving it a tuple. There's not really any subtle reason why that's wrong, it just is. Looking at diving-beet.py
, the element_name
function is being called with the return value of element_at
, which is not annotated to return an element
, so it will expose the underlying type definition (which is (element_type, u8)
).
This whole business with how type abbreviations affect entry points is quite subtle (I tried writing about it here), but it is also not your problem. Just add full type annotations to all entry points and all will be well.
In
world.fut
:make run
then generates the following error: