✅ generic mess
If I have a type that takes <T, E> is there a way to return T generically I.E.
Where T is a type I pass in
8 Replies
So the T generic in my result is also the generic I pass into my method
i dont understand
does
return type;
not work?I'd really prefer returning my result type, it has error stuff involved if something goes awry
why would that be different
I'm confused
I'm gonna reload VScode and if this red squiggles goes away I'm gonna be happy
Okay so I thought the code I sent was wrong but it was just bug with my editor
After reloading the error is gone
vscode moment
$close
Use the
/close
command to mark a forum thread as answered