Static local variable support
Open
area:compiler
kind:feature
status:help-wanted
- Dominant language
- C#
- Stars
- 451
- Forks
- 49
- Avg merge
- 13h 59m
- Merged PRs (30d)
- 6
Description
We should support static local variables properly, i.e.
```c
void incrementAndPrint(void) {
static int counter = 0;
++counter;
printfn("%d", counter);
}
int main(void) {
incrementAndPrint(); // 1
incrementAndPrint(); // 2
}
```
Look for number `342` in the sources when implementing this feature.
Contributor guide
Assessment
This issue has not been assessed yet.