11 lines
242 B
Zig
11 lines
242 B
Zig
pub fn main() void {
|
|
_ = ohyes("sdf"); // everything is fine
|
|
}
|
|
|
|
fn ohyes(str: []const u8) []const u8 {
|
|
//const foo = "ohyes";
|
|
_ = str;
|
|
return "sdfg"; // foo is already a pointer, or rather
|
|
// foo was a pointer all along
|
|
}
|