Merge pull request #2668 from 9rnsr/fix11261

[REG2.064a] Issue 11261 - Can't infer types without explicit slice in foreach