Bug? Maybe weird error message?

Sandman

Expert
Licensed User
Longtime User
Let's say I have a class with a resumable sub that takes an argument:
B4X:
Sub spawn_universe (seed As String) As ResumableSub

I call that class from somewhere else, but don't provide the argument:
B4X:
wait For (CL_DELUSION.spawn_universe) complete (universe As Map)

Gives this error:
B4X:
Undeclared variable 'complete'. (Warning #8)

Strangely enough, this only seems to be relevant if you have a resumable sub. If I have a vanilla example, no error message at all is shown:
B4X:
Dim dog As Long = CL_ANIMALS.wiener_dog
...and...
B4X:
Sub wiener_dog (length As Int) As Long
...produce no error message at all.
 
Top