Add a note about the sideeffect pragma (#23543)

(cherry picked from commit 63398b11f5)
This commit is contained in:
Antonis Geralis
2024-05-08 23:53:29 +03:00
committed by narimiran
parent cd65b5e5f8
commit 8f5451832e

View File

@@ -5358,6 +5358,8 @@ To override the compiler's side effect analysis a `{.noSideEffect.}`
**Side effects are usually inferred. The inference for side effects is
analogous to the inference for exception tracking.**
When the compiler cannot infer side effects, as is the case for imported
functions, one can annotate them with the `sideEffect` pragma.
GC safety effect
----------------