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

Ambiguous behavior of Tuple constructor with mismatched array length #55498

Closed
gryumov opened this issue Aug 15, 2024 · 2 comments
Closed

Ambiguous behavior of Tuple constructor with mismatched array length #55498

gryumov opened this issue Aug 15, 2024 · 2 comments
Labels
duplicate Indicates similar issues or pull requests

Comments

@gryumov
Copy link

gryumov commented Aug 15, 2024

Ambiguous behavior of Tuple constructor with mismatched array length.

julia> Tuple{String}(Any["x", "y", 1, 2, 3])
("x",)

julia> Tuple{String,String}(["x", "y", 1])
("x", "y")
julia> versioninfo()
Julia Version 1.9.4
Commit 8e5136fa297 (2023-11-14 08:46 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M1 Pro
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 8 on 6 virtual cores
Environment:
  JULIA_HOME = /Users/stanislav/julia/usr/bin
  JULIA_PKG_USE_CLI_GIT = true
  JULIA_EDITOR = atom  -a
  JULIA_NUM_THREADS = 8
@adienes
Copy link
Member

adienes commented Aug 15, 2024

I believe this is a dup of #37132

@mbauman
Copy link
Member

mbauman commented Aug 15, 2024

Duplicate of #52657

@mbauman mbauman marked this as a duplicate of #52657 Aug 15, 2024
@mbauman mbauman closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2024
@nsajko nsajko added the duplicate Indicates similar issues or pull requests label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Indicates similar issues or pull requests
Projects
None yet
Development

No branches or pull requests

4 participants