mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
More extern constraints work
This commit is contained in:
parent
d35ef0e1e8
commit
35505d905a
7 changed files with 34 additions and 10 deletions
|
@ -47,7 +47,7 @@ namespace Tests
|
|||
|
||||
static
|
||||
{
|
||||
public static T Total<T>(this List<T> list) where T : IOpAddable
|
||||
public static T Total<T>(this List<T> list) where T : operator T + T
|
||||
{
|
||||
T total = default;
|
||||
for (let val in list)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue