disable sink inference, only enable it for the stdlib. Reason: better source code compatibility (#15105)

This commit is contained in:
Andreas Rumpf 2020-07-28 19:18:46 +02:00 • committed by GitHub
commit 86c9b78339
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 5 deletions

View file

@ -48,3 +48,6 @@ when defined(nimlocks):
{.pragma: benign, gcsafe, locks: 0.}
else:
{.pragma: benign, gcsafe.}
when defined(nimHasSinkInference):
{.push sinkInference: on.}