import Foundation

extension Measurement where UnitType == UnitAngle {
  var radians: CGFloat {
    return CGFloat(self.converted(to: .radians).value)
  }

  var degrees: CGFloat {
    return CGFloat(self.converted(to: .degrees).value)
  }

  func f() {
    return //%self.expect('p self.radians', substrs=["property 'radians' requires the types 'UnitType' and 'UnitAngle' be equivalent"], error=True)
  }
}

let measure = Measurement<UnitAngle>(value: 100, unit: UnitAngle.degrees)
measure.f()

import Foundation

extension Measurement where UnitType == UnitAngle {
  var radians: CGFloat {
    return CGFloat(self.converted(to: .radians).value)
  }

  var degrees: CGFloat {
    return CGFloat(self.converted(to: .degrees).value)
  }

  func f() {
    return //%self.expect('p self.radians', substrs=['is not convertible to'], error=True)
  }
}

let measure = Measurement<UnitAngle>(value: 100, unit: UnitAngle.degrees)
measure.f()

--- 
+++ 
@@ -10,7 +10,7 @@
   }
 
   func f() {
-    return //%self.expect('p self.radians', substrs=['is not convertible to'], error=True)
+    return //%self.expect('p self.radians', substrs=["property 'radians' requires the types 'UnitType' and 'UnitAngle' be equivalent"], error=True)
   }
 }
 
[Tests] Adjust error message for failing member lookup test

Align test error message which https://github.com/apple/swift/pull/25053
which improves diagnostics related to generic requirements.

(cherry picked from commit bbe2050866b430cfa6524212198d24f125dc13c7)
