sink parameter inference for types that have destructors (#13544)
* ensure capitalize doesn't take an inferred sink parameter * sink parameter inference: first version, for now disabled. Changed that sink parameters can be consumed multiple times in order to adhere to our spec. * sink inference can now be disabled with .nosinks; sometimes for proc type interop this is required * fixes yet another critical DFA bug * better implementation that also understands if expressions etc * document sink parameter inference and allow for global disabling
This commit is contained in:
parent
614fb7567c
commit
a0eca75182
19 changed files with 158 additions and 28 deletions
|
|
@ -6,8 +6,8 @@ discard """
|
|||
const expected = """
|
||||
tassert_c.nim(35) tassert_c
|
||||
tassert_c.nim(34) foo
|
||||
assertions.nim(27) failedAssertImpl
|
||||
assertions.nim(20) raiseAssert
|
||||
assertions.nim(29) failedAssertImpl
|
||||
assertions.nim(22) raiseAssert
|
||||
fatal.nim(55) sysFatal"""
|
||||
|
||||
proc tmatch(x, p: string): bool =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue