Your prefix +
will also break type inference, as previously discussed.
let b = +1
// expected `b: Int`
// actually `b: MyPlusInt`
(Although this doesn't occur in the Swift 6.0 REPL, for whatever reason.)
Your prefix +
will also break type inference, as previously discussed.
let b = +1
// expected `b: Int`
// actually `b: MyPlusInt`
(Although this doesn't occur in the Swift 6.0 REPL, for whatever reason.)