example: function calls can't happen on consts yet
- add suggestion to make it work as TODO
This commit is contained in:
parent
0b72462954
commit
e69451cdd9
2 changed files with 8 additions and 1 deletions
|
@ -4,8 +4,12 @@ fn f() i32 {
|
|||
return 2;
|
||||
}
|
||||
|
||||
fn f2() i32 {
|
||||
return f() + 2;
|
||||
}
|
||||
|
||||
const (
|
||||
piss = f() + 3
|
||||
piss = 1 + 3
|
||||
)
|
||||
|
||||
enum B {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue