A "value" of a function should be its pointer
Open
area:compiler
good-first-issue
hacktoberfest
kind:feature
status:help-wanted
- Dominant language
- C#
- Stars
- 451
- Forks
- 49
- Avg merge
- 13h 59m
- Merged PRs (30d)
- 6
Description
Right now, this doesn't seem to compile:
```c
int foo(int) { return 0; }
typedef int foo_t(int);
foo_t v = foo;
```
This should work the same as `foo_t v = &foo;`, i.e. it should take a function address automatically.
Look for the number `227` in the code to find clues to implement this feature.
Contributor guide
Assessment
This issue has not been assessed yet.