[SR-5457] Specific error message when user tries to compile Swift executable #48029
Labels
compiler
The Swift compiler itself
good first issue
Good for newcomers
improvement
parser
Area → compiler: The legacy C++ parser
Additional Detail from JIRA
md5: 111feeb80ab569e4bee27d9d511be231
Issue Description:
I was talking to a new Swift programmer who came from the ruby/python world. He had this output:
Because he had started with Swift scripts, where you put
swift
in front of thefile.swift
name.The error message above is perfectly valid, but unhelpful in this case. I would guess enough new programmers would make this mistake that it's worth discussing a special-case error message if the file to be run is already a Swift executable.
The text was updated successfully, but these errors were encountered: