fix Issue 12508 - Codegen bug for interface type covariant return with lambda type inference
Merge pull request #3417 from 9rnsr/fix12508

Issue 12508 - Codegen bug for interface type covariant return with lambda type inference