Files
c3c/test/test_suite/generic/generic_infer_ok.c3
2026-01-18 00:33:43 +01:00

14 lines
213 B
Plaintext

import std;
struct Result <WithType2>
{
fault error;
}
macro err(fault error) <OfType> @builtin => (Result{OfType}){ .error = error };
faultdef TESTIN;
fn int main()
{
Result{int} x = err(TESTIN);
return 0;
}