Ticket #5793: TestImportTypes.mo
| File TestImportTypes.mo, 493 bytes (added by , 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | package TestImportTypes |
| 2 | |
| 3 | package Types |
| 4 | package Choices |
| 5 | type MyEnumeration = enumeration(case1 "First case", case2 "Second case"); |
| 6 | end Choices; |
| 7 | end Types; |
| 8 | |
| 9 | model M |
| 10 | import TestImportTypes.Types.Choices; |
| 11 | parameter Choices.MyEnumeration p; |
| 12 | end M; |
| 13 | |
| 14 | model System |
| 15 | M m annotation( |
| 16 | Placement(visible = true, transformation(origin = {6, 6}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); |
| 17 | equation |
| 18 | |
| 19 | end System; |
| 20 | |
| 21 | end TestImportTypes; |
