1const std = @import("std");
2const math = std.math;
3const testing = std.testing;
4
5test "fn reflection" {
6 try testing.expectEqual(bool, @typeInfo(@TypeOf(testing.expect)).@"fn".param_types[0].?);
7 try testing.expectEqual(testing.TmpDir, @typeInfo(@TypeOf(testing.tmpDir)).@"fn".return_type.?);
8
9 try testing.expect(@typeInfo(@TypeOf(math.Log2Int)).@"fn".is_generic);
10}
11
12// test