This PR contains just the test cases from #1717, showing some tricky cases around function expression mutability inference.