error: failed to produce diagnostic for expression #62519
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
failed to produce diagnostic
Bug → internal error: Failed to produce diagnostic for expression
type checker
Area → compiler: Semantic analysis
Description
The compiler fails to build a simple one file program and halts with this error.
Steps to reproduce
Command:
Expected behavior
The source code is wrong since it should be
contentsOfFile
notcontentsOffile
as pointed out by the first error message, so that part is fine.The issue is with the last error message.I am not sure why it gets printed, maybe nothing should be printed? Or
unable to infer type for expression due to a previous error
perhaps.Environment
All done on the command line (no Xcode involved).
The text was updated successfully, but these errors were encountered: