Skip to content

Commit

Permalink
test: parenthesized type assignability
Browse files Browse the repository at this point in the history
  • Loading branch information
R-unic committed Jan 12, 2025
1 parent 0eef0d4 commit 970b44d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Heir.Tests/TypeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ public void PrimitiveTypes_AreAssignableTo()
var b = PrimitiveType.Int;
Assert.True(a.IsAssignableTo(b));
}

[Fact]
public void ParenthesizesTypes_AreAssignableTo()
{
var a = new ParenthesizedType(PrimitiveType.Int);
var b = new ParenthesizedType(PrimitiveType.Int);
Assert.True(a.IsAssignableTo(b));
}

[Fact]
public void UnionTypes_AreAssignableTo()
Expand Down

0 comments on commit 970b44d

Please sign in to comment.