Branch: refs/heads/main
Revision: 859a81c
Author: daviditen
Link: Change error about 'new borrowed' into a deprecation warning by daviditen · Pull Request #20589 · chapel-lang/chapel · GitHub
Log Message:
Merge pull request #20589 from daviditen/new-borrowed-deprecated
Change error about 'new borrowed' into a deprecation warning
[reviewed by @mppf thanks!]
Change the error about 'new borrowed C' into a deprecation warning and add
a deprecation test for it.
Update .good files of tests that use 'new borrowed C()' to expect the
deprecation messages.
Modified Files:
A test/classes/generic/with-runtime-fields-errors.borrowed.done.good
A test/deprecated/newBorrowed.chpl
A test/deprecated/newBorrowed.good
A test/with-runtime-fields-errors.done.good
M compiler/resolution/initializerResolution.cpp
M test/arrays/types-fixed-array/testBorrowed.good
M test/arrays/types-fixed-array/testNilableBorrowed.good
M test/arrays/types-resized-array/testBorrowed.good
M test/arrays/types-resized-array/testNilableBorrowed.good
M test/associative/types/testBorrowed.good
M test/classes/delete-free/borrowed/makeNewBorrowed.good
M test/classes/delete-free/errors-managed-new-record.good
M test/classes/ferguson/class-double-modifier.good
M test/classes/generic/with-runtime-fields-errors.compopts
M test/classes/generic/with-runtime-fields-errors.error.borrowed.good
M test/library/packages/SortedMap/types/testBorrowed.good
M test/library/packages/SortedSet/general/types/testBorrowed.good
M test/library/standard/Heap/type/testBorrowed.good
M test/library/standard/List/types/testBorrowed.good
M test/library/standard/Map/types/testBorrowed.good
M test/library/standard/Set/types/testBorrowed.good
M test/types/tuple/types/testBorrowed.good
M test/types/tuple/types/testNilableBorrowed.good
Compare: https://github.com/chapel-lang/chapel/compare/eb961e346c75...859a81c12b58