[Chapel Merge] Improve copy initializers for list

Branch: refs/heads/master
Revision: 3de7e0c
Author: mppf
Log Message:

Merge pull request #16708 from mppf/list-initeq-improvements

Improve copy initializers for list

  • Make List’s checkType return param since it just calls compilerError
    calls there is no need for it to exist at runtime.
  • Adjust list init= to be more flexible to handle issue #16706
  • Add list init/init= from iterator expr for issue #16166

Reviewed by @dlongnecke-cray - thanks!

  • [x] full local testing

Modified Files:
M modules/standard/List.chpl

Compare: https://github.com/chapel-lang/chapel/compare/16eb3179fa7c...3de7e0c68dbd