@@ -2060,7 +2060,7 @@ public PFunction function(Object cls, PCode code, PDict globals, String name, @S
20602060 @ Specialization
20612061 public PFunction function (Object cls , PCode code , PDict globals , @ SuppressWarnings ("unused" ) PNone name , @ SuppressWarnings ("unused" ) PNone defaultArgs , PTuple closure ,
20622062 @ Shared ("getObjectArrayNode" ) @ Cached GetObjectArrayNode getObjectArrayNode ) {
2063- return factory ().createFunction ("<lambda>" , getTypeName (cls ), code , globals , PCell .castToCellArray (getObjectArrayNode .execute (closure )));
2063+ return factory ().createFunction ("<lambda>" , getTypeName (cls ), code , globals , PCell .toCellArray (getObjectArrayNode .execute (closure )));
20642064 }
20652065
20662066 @ Specialization
@@ -2073,7 +2073,7 @@ public PFunction function(Object cls, PCode code, PDict globals, @SuppressWarnin
20732073 @ Specialization
20742074 public PFunction function (Object cls , PCode code , PDict globals , String name , @ SuppressWarnings ("unused" ) PNone defaultArgs , PTuple closure ,
20752075 @ Shared ("getObjectArrayNode" ) @ Cached GetObjectArrayNode getObjectArrayNode ) {
2076- return factory ().createFunction (name , getTypeName (cls ), code , globals , PCell .castToCellArray (getObjectArrayNode .execute (closure )));
2076+ return factory ().createFunction (name , getTypeName (cls ), code , globals , PCell .toCellArray (getObjectArrayNode .execute (closure )));
20772077 }
20782078
20792079 @ Specialization
@@ -2087,7 +2087,7 @@ public PFunction function(Object cls, PCode code, PDict globals, String name, PT
20872087 public PFunction function (Object cls , PCode code , PDict globals , String name , PTuple defaultArgs , PTuple closure ,
20882088 @ Shared ("getObjectArrayNode" ) @ Cached GetObjectArrayNode getObjectArrayNode ) {
20892089 // TODO split defaults of positional args from kwDefaults
2090- return factory ().createFunction (name , getTypeName (cls ), code , globals , getObjectArrayNode .execute (defaultArgs ), null , PCell .castToCellArray (getObjectArrayNode .execute (closure )));
2090+ return factory ().createFunction (name , getTypeName (cls ), code , globals , getObjectArrayNode .execute (defaultArgs ), null , PCell .toCellArray (getObjectArrayNode .execute (closure )));
20912091 }
20922092
20932093 @ Fallback
0 commit comments