Skip to content

the effect inference for collect_as seems bad #71

@nsajko

Description

@nsajko
julia> using FixedSizeArrays

julia> Base.infer_effects(collect, Tuple{typeof((n*n for n  1:3))})
(!c,+e,!n,!t,+s,+m,!u,+o,+r)

julia> Base.infer_effects(FixedSizeArrays.collect_as, Tuple{Type{FixedSizeVector}, typeof((n*n for n  1:3))})
(!c,!e,!n,!t,!s,!m,!u,!o,!r)

julia> versioninfo()
Julia Version 1.12.0-DEV.1387
Commit 9f929892746 (2024-10-15 07:30 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × AMD Ryzen 3 5300U with Radeon Graphics
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, znver2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamIssue related to an upstream package or Julia itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions