title: How to use Objective-C enum in Swift
body: <p>I have 2 enum definition in Objective-C file and Swift file.</p>
  
  <p><strong>Japanese.h</strong></p>
  
  <pre><code>typedef enum {
    JapaneseFoodType_Sushi = 1,
    JapaneseFoodType_Tempura = 2,
  } JapaneseFoodType;
  </code></pre>
  
  <p><strong>US.swift</strong></p>
  
  <pre><code>enum USFoodType {
    case HUMBERGER;
    case STEAK;
  }
  </code></pre>
  
  <p>as we know, I can use Objective-C enum like following;</p>
  
  <p><strong>Japanese.m</strong></p>
  
  <pre><code>- (void)method {
    JapaneseFoodType type1 = JapaneseFoodType_Sushi;
    JapaneseFoodType type2 = JapaneseFoodType_Tempura;
    if (type1 == type2) {// this is no problem
    }
  }
  </code></pre>
  
  <p>But I can not use Objective-C enum in Swift file like following;</p>
  
  <pre><code>  func method() {
      var type1: USFoodType = USFoodType.HUMBERGER// no problem
      var type2: USFoodType = USFoodType.HUMBERGER// no problem
      if type1 == type2 {
  
      }
  
      var type3: JapaneseFoodType = JapaneseFoodType_Sushi// no problem
      var type4: JapaneseFoodType = JapaneseFoodType_Tempura// no problem
      if type3 == type4 {// 'JapaneseFoodType' is not convertible to 'Selector'
  
      }
    }
  </code></pre>
  
  <p>Is this a bug of Swift? And how can I use Objective-C (C) enum in Swift file?</p>