Branch: refs/heads/main
Revision: 08b2ac2412f9063dd17e2a3256c888203a02fe5c
Author: bradcray
Link: Remove the deprecation for single-statement 'return' procedures by bradcray · Pull Request #23953 · chapel-lang/chapel · GitHub
Log Message:
Remove the deprecation for single-statement 'return' procedures (#23953)
[reviewed by @ShreyasKhandekar — thanks!]
Writing single-statement return procedures without 'do' or curly braces
has been deprecated for a few releases now, so this PR removes that
support, turning such cases into normal syntax errors.
Diff:
M frontend/include/chpl/parsing/parser-error-classes-list.h
M frontend/lib/parsing/ParserContext.h
M frontend/lib/parsing/ParserContextImpl.h
M frontend/lib/parsing/bison-chpl-lib.cpp
M frontend/lib/parsing/chpl.ypp
M frontend/lib/parsing/parser-error-classes-list.cpp
M frontend/test/resolution/testFunctionCalls.cpp
M frontend/test/resolution/testGenericDefaults.cpp
M frontend/test/resolution/testReductions.cpp
D test/deprecated/singleStatementReturn-detailed.good
D test/deprecated/singleStatementReturn.chpl
D test/deprecated/singleStatementReturn.compopts
D test/deprecated/singleStatementReturn.good
M test/functions/generic/genericReturnMemKind.bad
https://github.com/chapel-lang/chapel/pull/23953.diff