- Timestamp:
- 2014-08-20T16:48:41+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testsuite/metamodelica/meta/ComplicatedInteractive.mos
r20560 r21933 7 7 loadFile("ComplicatedInteractive.mo"); 8 8 9 res := ComplicatedInteractive.RecordWithComplicatedTypes((1 , {}));10 res := ComplicatedInteractive.RecordWithComplicatedTypes((1 , {(1.0, SOME({}))}));11 res := ComplicatedInteractive.RecordWithComplicatedTypes((1 , {(1.0, NONE()), (1.0, SOME({1,2,3}))}));9 res := ComplicatedInteractive.RecordWithComplicatedTypes((1.0, {})); 10 res := ComplicatedInteractive.RecordWithComplicatedTypes((1.0, {(1.0, SOME({}))})); 11 res := ComplicatedInteractive.RecordWithComplicatedTypes((1.0, {(1.0, NONE()), (1.0, SOME({1,2,3}))})); 12 12 res2 := ComplicatedInteractive.LI2Ident(res); 13 13 res3 := ComplicatedInteractive.NewComplicatedThingy(NONE()); … … 18 18 19 19 // Expecting failures 20 ComplicatedInteractive.RecordWithComplicatedTypes((1, {(1.0, NONE()), (1.0, SOME({true}))})); 20 ComplicatedInteractive.RecordWithComplicatedTypes((1, {(1.0, NONE()), (1.0, SOME({true}))})); 21 21 getErrorString(); 22 22 ComplicatedInteractive.NewComplicatedThingy(SOME({true})); … … 47 47 // end ComplicatedInteractive.LI2.RecordWithComplicatedTypes;) 48 48 // {(2,3.5),(2,3.5),(2,3.5),(1,7.5),(2,3.5),(2,3.5)} 49 // 50 // "Error: Type mismatch for positional argument 1 in ComplicatedInteractive.LI2(rcf= (1, List(Tuple(#(1.0), NONE()), Tuple(#(1.0), SOME(List(#(true))))))). The argument has type:51 // (Integer, list<tuple<#Real, Option<list<#Boolean>>>>)49 // 50 // "Error: Type mismatch for positional argument 1 in ComplicatedInteractive.LI2(rcf=Tuple(#(1), List(Tuple(#(1.0), NONE()), Tuple(#(1.0), SOME(List(#(true))))))). The argument has type: 51 // tuple<#Integer, list<tuple<#Real, Option<list<#Boolean>>>>> 52 52 // expected type: 53 53 // tuple<#Real, list<tuple<#Real, Option<list<#Integer>>>>> 54 54 // Error: In record constructor ComplicatedInteractive.LI2.RecordWithComplicatedTypes: Failed to match types: 55 // actual: (tuple<#Integer, list<tuple<#Real, Option<list<#Boolean>>>>>)55 // actual: tuple<tuple<#Integer, list<tuple<#Real, Option<list<#Boolean>>>>>> 56 56 // expected: (tuple<#Real, list<tuple<#Real, Option<list<#Integer>>>>>) 57 57 // " 58 // 58 // 59 59 // "Error: Type mismatch for positional argument 1 in ComplicatedInteractive.NewComplicatedThingy(opt=SOME(List(#(true)))). The argument has type: 60 60 // Option<list<#Boolean>>
Note: See TracChangeset
for help on using the changeset viewer.