mirror of
https://github.com/ziglang/zig.git
synced 2025-12-27 00:23:22 +00:00
Some tests are now failing due to debug info changes, some tests now pass due to improved compiler functionality.
17 lines
279 B
Zig
17 lines
279 B
Zig
const std = @import("std");
|
|
const builtin = @import("builtin");
|
|
|
|
inline fn foo(comptime T: type) !T {
|
|
return error.AnError;
|
|
}
|
|
|
|
fn main0() !void {
|
|
_ = try foo(u8);
|
|
}
|
|
|
|
test "issue12644" {
|
|
main0() catch |e| {
|
|
try std.testing.expect(e == error.AnError);
|
|
};
|
|
}
|