File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,20 +18,20 @@ internal GenericType(Type tp) : base(tp)
1818 /// <summary>
1919 /// Implements __new__ for reflected generic types.
2020 /// </summary>
21- public static IntPtr tp_new ( IntPtr tp , IntPtr args , IntPtr kw )
21+ public static NewReference tp_new ( BorrowedReference tp , BorrowedReference args , BorrowedReference kw )
2222 {
2323 Exceptions . SetError ( Exceptions . TypeError , "cannot instantiate an open generic type" ) ;
24- return IntPtr . Zero ;
24+ return default ;
2525 }
2626
2727
2828 /// <summary>
2929 /// Implements __call__ for reflected generic types.
3030 /// </summary>
31- public static IntPtr tp_call ( IntPtr ob , IntPtr args , IntPtr kw )
31+ public static NewReference tp_call ( BorrowedReference ob , BorrowedReference args , BorrowedReference kw )
3232 {
3333 Exceptions . SetError ( Exceptions . TypeError , "object is not callable" ) ;
34- return IntPtr . Zero ;
34+ return default ;
3535 }
3636 }
3737}
You can’t perform that action at this time.
0 commit comments