Bottles of Corona and Pacifico beer are displayed in a cooler at Marin Beverage Outlet in San Rafael, California.

Beer brewer Constellation Brands' big bet on cannabis company Canopy Growth has yet to pay off.

The brewer of Corona and Modelo invested $4 billion in the Canada-based company in 2017. The company has yet to turn a profit and is investing heavily in expansion. Overall, Canopy shares are down 30% over the last year.

But Constellation's chief executive said on the company's post-earnings conference call Wednesday that he was optimistic about Canopy's prospects as more marijuana users buy the drug legally instead of on the black market.

"We remain bullish on the Canadian cannabis market as the conversion of the illicit market to the legal market continues to strengthen," CEO Bill Newlands told analysts on the conference call.

Constellation reported fiscal third-quarter net income of $366.5 million, dragged down by $71.1 million loss on its investment in Canada-based Canopy Growth. The alcoholic beverage company has reported a loss on its stake in Canopy in all three quarters of its fiscal 2020.

Shares of Constellation, which has a market value of $36.2 billion, were still trading up 4% in midday trading Wednesday after the company raised its full-year adjusted earnings forecast.

In December, the brewer announced that Chief Financial Officer David Klein would be the marijuana grower's new chief executive, effective Jan. 14. On Wednesday, Newlands told analysts that Klein would bring "more focus and discipline" to the business.

In October, a year after permitting recreational marijuana use, Canada legalized marijuana-based vapes, edibles and beverages — products with higher profit margins, presenting an opportunity for Canopy.

Canopy is rolling out its own vapes and edibles, as well as cannabis-infused beverages made with Constellation.

"We couldn't be more excited to see these products in the marketplace," Newlands said.

The Modelo brewer's bet on cannabis came as U.S. consumption of beer declined and legalized cannabis was seen as a threat to all alcohol categories. Some health conscious consumers are skipping alcohol altogether. Those who still drink are choosing spirits, higher value wine, premium beer or hard seltzer, the summer's biggest alcohol trend.

To capitalize on that trend, Constellation is planning to launch a Corona-branded hard seltzer around the start of fiscal 2021. But it will be entering a crowded market. White Claw, the market leader, dominates the category. Other options include Anheuser-Busch InBev's Bon & Viv and Boston Beer Company's Truly.

Constellation has also been selling off some of its portfolio to respond to changing consumer tastes. In December, the company announced a deal to sell its Ballast Point beer brand.

Excluding the loss on the Canopy investment and other items, Constellation's adjusted quarterly earnings of $2.14 per share topped analysts' estimates of $1.85 per share. The company reported revenue of $1.99 billion, beating Wall Street's expectations of $1.95 billion.