Merge pull request #2663 from 9rnsr/fix11242

[REG2.064a] Issue 11242 - Fails to infer template argument with inout