mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-27 09:01:37 +00:00
implements #78
This commit is contained in:
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)
|
||||
Reference in New Issue
Block a user