Commit 5a24e0a
committed
Only transform local variables for their values
Previously we were transforming arguments also, and if they are intent(in), it
becomes problematic. To solve optional arguments, we should assign their values
at the call site, like LPython does.
Towards lcompilers/lpython#2851.1 parent 20d5b2a commit 5a24e0a
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2209 | 2209 | | |
2210 | 2210 | | |
2211 | 2211 | | |
2212 | | - | |
2213 | | - | |
2214 | | - | |
2215 | | - | |
2216 | | - | |
2217 | | - | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
2218 | 2221 | | |
2219 | 2222 | | |
2220 | 2223 | | |
| |||
0 commit comments