File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
convex-core/src/main/java/convex/core/lang Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1391,7 +1391,8 @@ public static ACell get(ADataStructure<?> coll, ACell key) {
1391
1391
* @param keys Key to look up in collection
1392
1392
* @return Value from collection with the specified key, or null if not found / invalid path
1393
1393
*/
1394
- public static ACell getIn (ACell coll , Object ... keys ) {
1394
+ @ SuppressWarnings ("unchecked" )
1395
+ public static <T extends ACell > T getIn (ACell coll , Object ... keys ) {
1395
1396
ACell result =coll ;
1396
1397
for (int i =0 ; i <keys .length ; i ++) {
1397
1398
if (result instanceof ADataStructure ds ) {
@@ -1401,7 +1402,7 @@ public static ACell getIn(ACell coll, Object... keys) {
1401
1402
return null ;
1402
1403
}
1403
1404
}
1404
- return result ;
1405
+ return ( T ) result ;
1405
1406
}
1406
1407
1407
1408
public static ACell assocIn (ACell a , ACell value , Object ... keys ) {
You can’t perform that action at this time.
0 commit comments