1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: check method args

This commit is contained in:
joe-conigliaro
2020-05-05 01:32:40 +10:00
parent 36bf99ed5a
commit b2157388d9
3 changed files with 25 additions and 7 deletions

View File

@@ -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"
}