scummvm/engines/director/lingo/tests/mperform.lingo
Eugene Sandulenko 9c3baec6a4
Revert "DIRECTOR: Support "me(blah 1, 2)" syntax, e.g. no comma after the method name"
This reverts commit 9153ec4f52.

With the current grammar change, foo(bar(5)) is treated as foo(bar 5) which
obviously breaks too many things
2023-07-19 13:22:02 +02:00

25 lines
395 B
Text

abc(mNew)
abc(callPerform)
factory abc
method mnew
put "init"
method callMe
put "Am i called?"
return "a1"
method callMe2
put "Am i called2?"
method callMe3
put "Am I called3?"
method callPerform
put "stepped into matFrame"
set retval to me(mPerform, "callMe")
me(mPerform, "callMe2")
me(mPerform, "callMe3")
put "returned" && retval
scummvmAssertEqual(retval, "a1")