We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbd7e7e commit 53d0200Copy full SHA for 53d0200
const.md
@@ -6,6 +6,7 @@ On top of what applies to [statics](static.md), they are subject to an additiona
6
const CONST: T = EXPR;
7
```
8
is supposed to behave as-if `EXPR` was written at every use site of `CONST`.
9
+To make this work, we need to ensure [const safety](const_safety.md).
10
11
Based on this requirement, we allow other constants and [promoteds](promotion.md) to read from constants.
12
This is why the value of a `const` is subject to validity checks.
0 commit comments