Skip to content

Commit 17903bb

Browse files
committed
add tests/stdlib/tsugar.nim ; add test case from @mratsim
1 parent 1cbcce4 commit 17903bb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/stdlib/tsugar.nim

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
discard """
2+
file: "tsugar.nim"
3+
output: ""
4+
"""
5+
import sugar
6+
7+
block distinctBase:
8+
type
9+
Foo[T] = distinct seq[T]
10+
var a: Foo[int]
11+
doAssert a.type.distinctBase is seq[int]

0 commit comments

Comments
 (0)