File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,20 +18,20 @@ internal GenericType(Type tp) : base(tp)
18
18
/// <summary>
19
19
/// Implements __new__ for reflected generic types.
20
20
/// </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 )
22
22
{
23
23
Exceptions . SetError ( Exceptions . TypeError , "cannot instantiate an open generic type" ) ;
24
- return IntPtr . Zero ;
24
+ return default ;
25
25
}
26
26
27
27
28
28
/// <summary>
29
29
/// Implements __call__ for reflected generic types.
30
30
/// </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 )
32
32
{
33
33
Exceptions . SetError ( Exceptions . TypeError , "object is not callable" ) ;
34
- return IntPtr . Zero ;
34
+ return default ;
35
35
}
36
36
}
37
37
}
You can’t perform that action at this time.
0 commit comments