Converts a method into a property with a closure type.