Skip to content

[SR-8181] Migrator cannot migrate from bitwise assignment operators on new OptionSets #50713

Open
@ChristopherRogers

Description

@ChristopherRogers
Previous ID SR-8181
Radar None
Original Reporter @ChristopherRogers
Type Bug
Environment

Xcode 10.0 beta 3 (10L201y)

Additional Detail from JIRA
Votes 1
Component/s Source Tooling
Labels Bug, Migrator
Assignee None
Priority Medium

md5: 493e92a0aa0e3c50044dc06f947bc3fe

Issue Description:

This code fails to build once migrated to 4.2.

import UIKit

func foo(isSelected: Bool) {
    var traits: UIAccessibilityTraits = UIAccessibilityTraitButton

    if isSelected {
      // Binary operator '|=' cannot be applied to two 'UIAccessibilityTraits' operands
      // traits |= UIAccessibilityTraits.selected
      traits |= UIAccessibilityTraitSelected
    }
}

I've attached a sample Xcode project for several issues to SR-8180.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.migrator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions