implements #78
This commit is contained in:
parent
7a48942719
commit
0e439ce367
6 changed files with 20 additions and 5 deletions
2
tests/clearmsg/mb.nim
Normal file
2
tests/clearmsg/mb.nim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
type
|
||||
typ* = distinct string
|
||||
3
tests/clearmsg/mc.nim
Normal file
3
tests/clearmsg/mc.nim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
type
|
||||
typ* = distinct int
|
||||
12
tests/clearmsg/ta.nim
Normal file
12
tests/clearmsg/ta.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
discard """
|
||||
errormsg: 'type mismatch: got (mc.typ)'
|
||||
line: 12
|
||||
"""
|
||||
|
||||
import mb, mc
|
||||
|
||||
proc test(testing: mb.typ) =
|
||||
discard
|
||||
|
||||
var s: mc.typ
|
||||
test(s)
|
||||
Loading…
Add table
Add a link
Reference in a new issue