/* Use a template struct in a poly function */ use "basic_models.g"; struct foo where { DefaultConstructible, Regular } { U u; }; fun makefoo where { DefaultConstructible, Regular } (T x) -> foo@ { return @foo{ u = x }; } fun main() -> int@ { return makefoo(3).u - 3; }