[Feature Request][move-compiler-v2] allow unconstrained generic inline functions #12680
Labels
enhancement
New feature or request
stale-exempt
Prevents issues from being automatically marked and closed as stale
馃殌 Feature Request
While it's unsafe to allow instantiation of generics in general without traits or other constraints, we can probably allow inlined functions to be used with arbitrary generic type parameters (a la traditional C++ templates) by re-doing type inference/checking on the inlined code during inlining, and complaining then if the type parameter doesn't have needed methods/operations.
Might be a stop-gap until we have traits.
The text was updated successfully, but these errors were encountered: