Help squashing bug: Expression [MethodCallExpression] is not allowed

The debugging info is of little help to me. I am writing an app and when i click save the following message appears:
Expression [MethodCallExpression] is not allowed: org.codehaus.groovy.runtime.InvokerHelper.runScript(Script1, args): line -1

Without a line number, I'm shooting in the dark. Any guidance on pinpointing the problem?

Apparently that's the error when you try to create a Class, since Hubitat's implementation of Groovy does not support Classes. Bummer.


Hubitat can't go for that. No can do.