Open dabrahams opened 8 years ago
I believe this can be closed as "Cannot Reproduce", unless someone wants to extract a test case.
`AbsoluteValue` is now called `Magnitude`. You could probably recreate this scenario in the standard library pretty easily before you decide to pitch it.
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, DiagnosticsQoI, TypeChecker | |Assignee | None | |Priority | Medium | md5: d1d92894b07a001718c1bd56c575351eIssue Description:
This tiny patch (applies to to 249c86e) attempts to move the `absoluteValue` property requirement and `AbsoluteValue` associated type up the refinement hierarchy from
SignedIntegerType
toIntegerType
.The problem is on line 26 of the patch (should be
: Self
, not: AbsoluteValue
).If you run the Prototypes/Integers.swift.gyb test, you’ll get this:
The diagnostics make no sense, “requires Word; candidate has non-matching type Word” and mentions the changed associated type incidentally in a way I don’t understand.