mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
14 lines
238 B
Zig
14 lines
238 B
Zig
fn a() type {
|
|
return struct {
|
|
pub fn b() void {
|
|
const c = 6;
|
|
const c = 69;
|
|
}
|
|
};
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :5:19: error: redeclaration of local constant 'c'
|
|
// :4:19: note: previous declaration here
|