DerivcoIpswich / dsharp

A fork of the Script# project.
http://www.derivco.co.uk
Other
20 stars 13 forks source link

Fix generic type return type by adding explicit cast #279

Open isc30 opened 3 years ago

isc30 commented 3 years ago

this crashes

Max<Person>(a0, a1, p => p.Age).Age

it can be fixed by the lowerer transforming it to:

((Person)Max<Person>(a0, a1, p => p.Age)).Age
isc30 commented 3 years ago

also, while doing this, fix the missing using for generic lowerer