Files
c3c/test/test_suite/constants/assign_to_const.c3
2024-12-11 20:56:11 +01:00

8 lines
118 B
Plaintext

module test;
import std::io;
fn void main()
{
const NUM = 4;
NUM += 1; // #error: You cannot assign to a constant
}