Custom type turns into *error-type*

Hello, so ive been practicing type annotations the past few weeks and everything seems to work just fine except sometimes the type becomes error-type, I dont understand why, what does this team?

I haven’t figured out how to finally get the type to show up, ive looked it up but can’t find any information online. Have you run into this before? And if so what have you learned and what are some ways to work around it?

2 Likes

This usually indicates an ill-formed type, which could be anything from a cyclic type reference to an unknown typename. We’d need the actual custom type declaration to diagnose further issues.