Skip to content
New issue

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

TypeError happens when constructing Fix2 struct with Vararg Tuple #40054

Closed
aviatesk opened this issue Mar 16, 2021 · 1 comment
Closed

TypeError happens when constructing Fix2 struct with Vararg Tuple #40054

aviatesk opened this issue Mar 16, 2021 · 1 comment

Comments

@aviatesk
Copy link
Member

master (70b6afa):

julia> isequal(Tuple{Vararg{Int, N}} where N)
julia> isequal(Tuple{Vararg{Int, N}} where N)
ERROR: TypeError: in new, expected DataType, got Type{Tuple{Vararg{Int64, N}} where N}
Stacktrace:
 [1] Base.Fix2(f::typeof(isequal), x::Type{Tuple{Vararg{Int64}}})
   @ Base ./operators.jl:1059
 [2] isequal(x::Type)
   @ Base ./operators.jl:1074
 [3] top-level scope
   @ none:1

1.6-rc1

julia> isequal(Tuple{Vararg{Int, N}} where N)
(::Base.Fix2{typeof(isequal), UnionAll}) (generic function with 1 method)

I confirmed this issue disappears after checking out to 3635f04, so I guess this is caused by 8fc5293 .

/cc @vtjnash

@vtjnash
Copy link
Member

vtjnash commented Mar 16, 2021

Duplicate of #35661

@vtjnash vtjnash marked this as a duplicate of #35661 Mar 16, 2021
@vtjnash vtjnash closed this as completed Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants