Repository navigation
Commit bdc58ee
Kotlin: Move equivalentTrap's read loop out of
The Kotlin 2.5 compiler no longer accepts an endless `while (true)` loop,
nested inside inline `use { }` lambdas, as the end of a function returning
Boolean, and reports "missing return statement". Move the line comparison
loop into a helper, equivalentTrapLines, so that it is the function body
itself. Behaviour is unchanged, and this compiles with all supported
Kotlin versions.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 38400d2f-9060-4b63-8536-73ce77bb5c91use lambdas1 parent 57adf71 commit bdc58ee
1 file changed
Lines changed: 14 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
349 | 348 | | |
350 | 349 | | |
351 | 350 | | |
| |||
0 commit comments