mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
checker: check method args
This commit is contained in:
parent
36bf99ed5a
commit
b2157388d9
3 changed files with 25 additions and 7 deletions
|
@ -28,6 +28,6 @@ fn test_eventbus(){
|
|||
assert !eb.subscriber.is_subscribed("on_test")
|
||||
}
|
||||
|
||||
fn on_test(sender voidptr, ev &EventData) {
|
||||
fn on_test(sender voidptr, ev &EventData, x voidptr) {
|
||||
assert ev.data == "hello"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue