Skip to content

Conversation

@FnControlOption
Copy link
Contributor

fn anytypeFn1(a: anytype) @TypeOf(a) {
    return a;
}
const anytype_1_int = anytypeFn1(42);
//    ^^^^^^^^^^^^^ (comptime_int)()
const anytype_1_bool = anytypeFn1(true);
//    ^^^^^^^^^^^^^^ (bool)()

@Techatrix Techatrix merged commit 56e25ab into zigtools:master Jun 15, 2025
4 checks passed
@FnControlOption FnControlOption deleted the anytype2 branch June 15, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants