mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-04 13:04:44 +00:00
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"))
|
||||
Reference in New Issue
Block a user