Skip to content

@allocated behavior changed in 1.12 #58780

Closed as not planned
Closed as not planned
@Moelf

Description

@Moelf

1.11

julia> @allocated a2 = rand(3);

julia> a2
3-element Vector{Float64}:
 0.52767349525505
 0.2269015858381862
 0.17957399950312425

1.12

julia> @allocated a2 = rand(3);

julia> a2
ERROR: UndefVarError: `a2` not defined in `Main`
Suggestion: check for spelling errors or missing imports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    macros@macrostriageThis should be discussed on a triage call

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions