Skip to content

Inference regression in julia 1.7 #43296

Closed
@jw3126

Description

@jw3126

The following snipped infers in 1.6 and even 1.7-rc1 but does not anymore. Came up here:

using Accessors
using Test
struct TT{A,B}
    a::A
    b::B
end
lens = @optic(_.b.a.b[2])
obj = TT(2, TT(TT(3,(4,4)), 2))
@inferred modify(identity, obj, lens)

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler:inferenceType inferenceregressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions