No Parenthesis in Method Call NO Error

Summary

I accidentally left out the () when calling PlayerSpawner.Enable() from Verse, so I was running PlayerSpawner.Enable without realizing it. There are no errors, and the code builds and runs. It just seems to ignore the call. This left me searching for a couple of hours for the issue, not realizing I was missing them.

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

Call a method on a device and leave the paranthesis out. Verse will report no errors and will build.

Expected Result

A verse error on the attempted call.

Observed Result

No errors indicated and the method doesn’t call.

Platform(s)

PC

Upload an image



I’m not 100% sure but I think that’s an intended verse feature to save the function and call upon it later, eg in the snippet below it only works because in Button.Disable I didn’t put the ()

2 Likes

That’s interesting, good to know. I’ll take a look.