Sema: fix closure capture typeof runtime-known parameter

Closures are not necessarily constant values. For example, Zig
code might do something like this:

    fn foo(x: anytype) void {
        const S = struct {field: @TypeOf(x)};
    }

...in which case the closure_capture instruction has access to a
runtime value only. In such case we preserve the type and use a
dummy runtime value.

closes #11292
bcf2eb1a00Andrew Kelley committed on 3/25/2022, 4:47:18 AMparentb802a67
2 files changedLine totals unavailable