Skip to content

Commit

Permalink
Remove where constraint from CastArray
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Jan 11, 2024
1 parent 82575cc commit 3ecd2db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
partial struct FlatArray<T>
{
// TODO: Add the tests and make public
internal FlatArray<TOther>? TryCastArray<TOther>() where TOther : class?
internal FlatArray<TOther>? TryCastArray<TOther>()
{
// Safe array cast: 'as' cast

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
partial struct FlatArray<T>
{
// TODO: Add the tests and make public
internal FlatArray<TOther> CastArray<TOther>() where TOther : class?
internal FlatArray<TOther> CastArray<TOther>()
{
// Unsafe array cast: InvalidCastException is expected

Expand Down

0 comments on commit 3ecd2db

Please sign in to comment.