Improve error message on const int*

This commit is contained in:
Christoffer Lerno
2026-02-06 02:00:26 +01:00
parent 5c158e481b
commit 124efb2684
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
import std;
fn int bar(const int* baz) // #error: 'const' is not allowed here, did you try to make a C style const parameter?
{}