Skip to content

Commit f4729b4

Browse files
committed
list
1 parent 17fd557 commit f4729b4

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

Tests/List.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using Coplt.Union;
2+
using Coplt.Union.Misc;
3+
4+
namespace Tests;
5+
6+
[Union, UnionSymbol(IsReferenceType = MayBool.True)]
7+
public partial class list<T>
8+
{
9+
[UnionTemplate]
10+
private interface Template
11+
{
12+
void Nil();
13+
void Cons(T Item, list<T> Tail);
14+
}
15+
}

Tests/Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7-
7+
<NoWarn>CS8981</NoWarn>
88
<IsPackable>false</IsPackable>
99
<IsTestProject>true</IsTestProject>
1010
</PropertyGroup>

0 commit comments

Comments
 (0)