implements #78

This commit is contained in:
Araq
2014-10-26 22:48:54 +01:00
parent 7a48942719
commit 0e439ce367
6 changed files with 20 additions and 5 deletions

2
tests/clearmsg/mb.nim Normal file
View File

@@ -0,0 +1,2 @@
type
typ* = distinct string

3
tests/clearmsg/mc.nim Normal file
View File

@@ -0,0 +1,3 @@
type
typ* = distinct int

12
tests/clearmsg/ta.nim Normal file
View 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)