@@ -23,11 +23,11 @@ public class GenericTypeTest {
2323 @ Test
2424 void genericTypeValueRoundtrip () {
2525 try (var arena = SwiftArena .ofConfined ()) {
26- var stringId = MySwiftLibrary .makeStringID ("Java" , arena );
26+ MyID < String > stringId = MySwiftLibrary .makeStringID ("Java" , arena );
2727 assertEquals ("Java" , stringId .getDescription ());
2828 assertEquals ("Java" , MySwiftLibrary .takeStringValue (stringId ));
2929
30- var intId = MySwiftLibrary .makeIntID (42 , arena );
30+ MyID < Long > intId = MySwiftLibrary .makeIntID (42 , arena );
3131 assertEquals ("42" , intId .getDescription ());
3232 assertEquals (42 , MySwiftLibrary .takeIntValue (intId ));
3333 }
@@ -36,16 +36,16 @@ void genericTypeValueRoundtrip() {
3636 @ Test
3737 void genericTypeProperty () {
3838 try (var arena = SwiftArena .ofConfined ()) {
39- var intId = MySwiftLibrary .makeIntID (42 , arena );
40- var entity = MyEntity .init (intId , "name" , arena );
39+ MyID < Long > intId = MySwiftLibrary .makeIntID (42 , arena );
40+ MyEntity entity = MyEntity .init (intId , "name" , arena );
4141 assertEquals ("42" , entity .getId (arena ).getDescription ());
4242 }
4343 }
4444
4545 @ Test
4646 void genericEnum () {
4747 try (var arena = SwiftArena .ofConfined ()) {
48- var value = MySwiftLibrary .makeIntGenericEnum (arena );
48+ GenericEnum < Long > value = MySwiftLibrary .makeIntGenericEnum (arena );
4949 switch (value .getCase ()) {
5050 case GenericEnum .Foo _ -> assertTrue (value .getAsFoo ().isPresent ());
5151 case GenericEnum .Bar _ -> assertTrue (value .getAsBar ().isPresent ());
0 commit comments