Opened 7 years ago

#4544 new defect

Nested match-statements with tuple outputs causes template error

Reported by: Per Östlund Owned by: Martin Sjölund
Priority: high Milestone: Future
Component: MetaModelica Version: v1.13.0-dev-nightly
Keywords: Cc:

Description

MetaModelica code like this:

(b, s) := match s
  case "test"
    then match s
      case "test" then (true, "test");
    end match;
end match;

gives the error:

[CodegenCFunctions.tpl:3547:14-3547:14:writable] Error: Template error: expTypeShort: (Boolean, String).

Attachments (1)

test.mos (371 bytes ) - added by Per Östlund 7 years ago.
Test case

Download all attachments as: .zip

Change History (1)

by Per Östlund, 7 years ago

Attachment: test.mos added

Test case

Note: See TracTickets for help on using tickets.