blob: e6a9122e169959ba472688c8f4b82eab19bd181f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
export fn foo() void {
const a = 1;
_ = struct {
test a {}
};
}
// error
// backend=stage2
// target=native
//
// :4:14: error: cannot test a local constant
// :2:11: note: local constant declared here
|