[SR-14291] Compiler doesn't tell where the error occurs. #56650
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
declarations
Feature: declarations
diagnostics QoI
Bug: Diagnostics Quality of Implementation
error handling
inheritance
Feature → type declarations → class: Subclassing and inheritance of class members
init
Feature → declarations: Initializers
swift 6.0
type checker
Area → compiler: Semantic analysis
Environment
Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
Target: x86_64-apple-darwin20.3.0
Additional Detail from JIRA
md5: 9a5fd6b71ce55da5783b9975045cb234
Issue Description:
Try to compile the following code:
The compiler views error like
<unknown>:0: error: call can throw, but it is not marked with 'try' and the error is not handled
.D
seems to callsuper.init
implicitly, but the error message doesn't imply it.The text was updated successfully, but these errors were encountered: