[SR-456] Confusing build error when calling 'max' function within 'extension Int' #43073
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Xcode Version: Version 7.2 (7C68)
OS X Version: 10.11.1 (15B42)
Additional Detail from JIRA
md5: c80716cfb9eccad98f648bc05dc3a005
is duplicated by:
relates to:
Issue Description:
When trying to build code that calls max() within an extension Int, a compiler error occurs.
This problem can be worked around by changing max(0, 1) to Swift.max(0, 1), but the error message seems unclear.
The text was updated successfully, but these errors were encountered: