-
This is example from tutorial, but I changed value 3 to "wtf" and I expected to get an error, because X in this case is a number and "wtf" is a string. But there are no errors. Why? local record Tree<X>
{Tree<X>}
item: X
end
local t: Tree<number> = {
item = 1,
{ item = 2 },
{ item = "wtf", { item = 4 } },
} Also VSCode says that |
Beta Was this translation helpful? Give feedback.
Answered by
hishamhm
Dec 29, 2021
Replies: 1 comment
-
This was a bug and it's now fixed in #499! Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hishamhm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was a bug and it's now fixed in #499! Thanks!