Skip to content

Bad macro expansion for keyword arguments #9

@nstiurca

Description

@nstiurca

Minimal working example:

module MacroBugMWE

using GenieFramework
@genietools

fun(foo; bar) = foo * bar

@handlers begin
  @in foo = "foo"
  @in bar = "bar"
  @out biz = ""
  @in myButton = false

  @onbutton myButton begin
      biz = fun(foo; bar)
  end
end

end

Results in

syntax: invalid keyword argument syntax "__model__.bar[]" around macro-bug-mwe.jl:15

Metadata

Metadata

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