| 1 | const std = @import("std"); |
| 2 | const math = std.math; |
| 3 | const testing = std.testing; |
| 4 | |
| 5 | test "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 |