We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This should fail, but it succeeds silently in next and crashes the compiler in 0.15.x.
next
local type List2 = record<T> new: function<U>(initialItems: {T}, u: U): List2<T> end function List2.new<U>(initialItems: {T}, u: U): List2<U> -- mismatched return type end local type Fruit2 = enum "apple" "peach" "banana" end local type L2 = List2<Fruit2> local lunchbox = L2.new({"apple", "peach"}, true)
The text was updated successfully, but these errors were encountered:
pending test: detect mismatch in function generics
ece9e50
See #801.
190d664
No branches or pull requests
This should fail, but it succeeds silently in
next
and crashes the compiler in 0.15.x.The text was updated successfully, but these errors were encountered: