Skip to content

Commit

Permalink
fixes #534 (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored Feb 13, 2025
1 parent 1922794 commit b9e2177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nimony/sigmatch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ proc singleArgImpl(m: var Match; f: var Cursor; arg: Item) =
of ParLe:
let fk = f.typeKind
case fk
of MutT:
of MutT, OutT:
var a = arg.typ
if a.typeKind in {MutT, OutT, LentT}:
inc a
Expand Down Expand Up @@ -711,7 +711,7 @@ proc singleArgImpl(m: var Match; f: var Cursor; arg: Item) =
skip f
else:
procTypeMatch m, f, a
of NoType, ErrT, ObjectT, RefobjT, PtrobjT, EnumT, HoleyEnumT, VoidT, OutT, LentT, SinkT, NiltT, OrT, AndT, NotT,
of NoType, ErrT, ObjectT, RefobjT, PtrobjT, EnumT, HoleyEnumT, VoidT, LentT, SinkT, NiltT, OrT, AndT, NotT,
ConceptT, DistinctT, StaticT, IteratorT, ItertypeT, AutoT, SymKindT, TypeKindT, OrdinalT:
m.error UnhandledTypeBug, f, f
else:
Expand Down

0 comments on commit b9e2177

Please sign in to comment.