   if of != nil {
     of!()
   } else {
-    print("Object does not respond to the selector \"f\".\n", terminator: "")
+    print("\(type(of: obj)) does not respond to the selector \"f\"")
+  }
+}
+
+func test_dynamic_lookup_e_unbound(_ obj: AnyObject) {
+  var oe = AnyObject.e(obj)
+  if oe != nil {
+    oe!()
+  } else {
+    print("\(type(of: obj)) does not respond to the selector \"e\"")
   }
 }
 

// REQUIRES: objc_interop

import Foundation

class X {
  init() {}

    return 17
  }
}
extension X: P {
  @objc func e() { print("X.e()") }
}

class Y { 
  init() {}
  @objc class func g() { print("Y.g()") }
}
extension Y: P {}

class Z {
   init() {}
