This commit is contained in:
Andreas Rumpf 2016-12-22 09:13:22 +01:00
commit 7bd473c59b
2 changed files with 28 additions and 14 deletions

View file

@ -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