Skip to content

macro + begin block #1106

@lungd

Description

@lungd
using ModelingToolkit: @parameters, @variables
using Unitful

struct Flow end
u = u"m^3/s"

@parameters t
@variables x(t)=1 [connect=Flow,unit=u]

@variables begin
  x(t)=1, [connect=Flow,unit=u]
end # syntax: misplaced assignment statement in "[connect = Flow, unit = u]"

I was not sure where to file this issue. It would probably fit better into Symbolics.jl but the tests are in MTK

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