parent
9b002e0d4f
commit
fab4d38411
2 changed files with 13 additions and 1 deletions
12
tests/distinct/t9322.nim
Normal file
12
tests/distinct/t9322.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
discard """
|
||||
output: apr
|
||||
"""
|
||||
|
||||
type Fix = distinct string
|
||||
|
||||
proc `$`(f: Fix): string {.borrow.}
|
||||
|
||||
proc mystr(s: string) =
|
||||
echo s
|
||||
|
||||
mystr($Fix("apr"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue