[SR-7986] Error when using similarly named local function when initializing a static property #50519
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
macOS High Sierra
swift-4.2-DEVELOPMENT-SNAPSHOT-2018-06-12-a
swift-DEVELOPMENT-SNAPSHOT-2018-06-08-a
Apple Swift version 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2)
Additional Detail from JIRA
md5: f53d720ba08240ee4553203c391fabd2
duplicates:
Issue Description:
Compiling the source below results in an error:
The compiler seem to assume that the local instance function, afunction(for:using), is intended when actually the global afunction(:options:) is meant.
I assume that the labels should be enough to understand which function is intended.
The text was updated successfully, but these errors were encountered: