(*, a=17)
| 170 | # Issue 1409: Initialisation of a cell value, |
| 171 | # when it comes from a keyword-only parameter |
| 172 | def foo(*, a=17): |
| 173 | def bar(): |
| 174 | return a + 5 |
| 175 | return bar() + 3 |
| 176 | |
| 177 | self.assertEqual(foo(a=42), 50) |
| 178 | self.assertEqual(foo(), 25) |