[SR-11829] Compiler crash on attempting to use AnyObject lookup with callAsFunction #54241
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
type checker
Area → compiler: Semantic analysis
Environment
Swift version 5.1.1-dev (Swift 704e45efbc)
Target: x86_64-apple-darwin19.0.0
Additional Detail from JIRA
md5: 58dea03bc6406e2b3b94de143224e4b7
Issue Description:
On master, the following currently crashes:
Stack trace:
While in theory we could probably make this work, IMO we should just avoid attempting to look for
callAsFunction
members on an AnyObject base, and emit an error saying it's not callable.The text was updated successfully, but these errors were encountered: