mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
parser: fix x.function_pointer()
This commit is contained in:
parent
2096018b00
commit
a38a0f4fb7
2 changed files with 4 additions and 1 deletions
|
@ -157,6 +157,9 @@ fn test_fn_type_call() {
|
|||
|
||||
st := MySt{f:test}
|
||||
assert st.f(10) == 1010
|
||||
|
||||
st1 := &MySt{f:test}
|
||||
assert st1.f(10) == 1010
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue