fix #6292, allow global/local declarations on short-form method defs