Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32c4bb6

Browse files
committed
switched generictype.cs to the new style references
1 parent d1bc193 commit 32c4bb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/runtime/generictype.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)