Skip to content

Commit 1523149

Browse files
committed
fixed bug
1 parent d0be060 commit 1523149

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/Concurrency/LinearTypeCollector.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ private Type OriginalType(Type type)
5555

5656
private void Check()
5757
{
58+
if (program.monomorphizer == null)
59+
{
60+
return;
61+
}
5862
foreach (var datatypeTypeCtorDecl in program.TopLevelDeclarations.OfType<DatatypeTypeCtorDecl>())
5963
{
6064
var originalTypeCtorDecl = Monomorphizer.GetOriginalDecl(datatypeTypeCtorDecl);

0 commit comments

Comments
 (0)