Replies: 1 comment 12 replies
-
This issue has been reported in #2842 IIUC, this is a limitation in the current type infer system:
|
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I just installed this as a VSCode extension and tested it out with this typegate scenario:
but as you can see, it doesn't report an error when calling the "upper" function on the value of type
string | number
.Maybe I don't have it set up correctly, but when I change it to simply
local nextValue = 42
then it does report an error, so the setup seems to be correct. Am I missing something?Edit: The
type:
info in the comment is what I get when I mouse over the variable.Beta Was this translation helpful? Give feedback.
All reactions