Skip to content

Commit

Permalink
Test connector extending type
Browse files Browse the repository at this point in the history
This is a test for ticket:4471
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Aug 3, 2017
1 parent d28b974 commit d96fb12
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions flattening/modelica/connectors/Makefile
Expand Up @@ -60,6 +60,7 @@ TankPI.mo \
TankPID.mo \
TanksConnectedPI.mo \
Ticket4062.mo \
TypeConnector.mo \
Units2.mo \
ZeroDimUnconnectedFlow1.mo \
ZeroDimUnconnectedFlow2.mo \
Expand Down
16 changes: 16 additions & 0 deletions flattening/modelica/connectors/TypeConnector.mo
@@ -0,0 +1,16 @@
// status: correct
// See ticket:4471

model TypeConnector
type T
extends String;
end T;
connector C = output T;
C c;
end TypeConnector;

// Result:
// class TypeConnector
// output String c;
// end TypeConnector;
// endResult

0 comments on commit d96fb12

Please sign in to comment.