Skip to content

move mutable struct definition outside of loop #954

@penelopeysm

Description

@penelopeysm
WARNING: Method definition (::Type{DPPLSubmodelTests.P})(Float64, Float64) in module DPPLSubmodelTests at /home/runner/work/DynamicPPL.jl/DynamicPPL.jl/test/submodels.jl:110 overwritten on the same line (check for duplicate calls to `include`).
WARNING: Method definition (::Type{DPPLSubmodelTests.P})(Any, Any) in module DPPLSubmodelTests at /home/runner/work/DynamicPPL.jl/DynamicPPL.jl/test/submodels.jl:110 overwritten on the same line (check for duplicate calls to `include`).

It looks like this

mutable struct P
a::Float64
b::Float64
end

is being defined twice because it's inside a nested testset, so we should move it out to just silence that warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions