EX-99.(14)(A) 4 d342004dex9914a.htm EX-99.(14)(A) EX-99.(14)(a)

Exhibit 14(a)

Consent of Independent Registered Public Accounting Firm

We consent to the reference to our firm under the caption “Experts” in the Joint Proxy Statement/Prospectus, dated November 28, 2022, and included in this Registration Statement (Form N-14 No. 333-267988) of Oaktree Specialty Lending Corporation (the “Registration Statement”).

We also consent to the incorporation by reference of our reports dated November 14, 2022, with respect to the consolidated financial statements of Oaktree Specialty Lending Corporation and the effectiveness of internal control over financial reporting of Oaktree Specialty Lending Corporation included in the Annual Report (Form 10-K) for the year ended September 30, 2022, into this Registration Statement, filed with the Securities and Exchange Commission.

/s/ Ernst & Young LLP

Los Angeles, CA

November 28, 2022