fixes #5137
This commit is contained in:
parent
4e481cc316
commit
7bd473c59b
2 changed files with 28 additions and 14 deletions
|
|
@ -65,3 +65,12 @@ type
|
|||
|
||||
# have a proc taking TFlags as param and returning object having TFlags field
|
||||
proc foo(flags: TFlags): TObj = nil
|
||||
|
||||
|
||||
# bug #5137
|
||||
type
|
||||
MyInt {.importc: "int".} = object
|
||||
MyIntDistinct = distinct MyInt
|
||||
|
||||
proc bug5137(d: MyIntDistinct) =
|
||||
discard d.MyInt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue