DerivcoIpswich / dsharp

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

Named delegates get transpiled as a library type #265

Open isc30 opened 4 years ago

isc30 commented 4 years ago

When compiling generics using Named Delegate types:

Hello<MyDelegate>();

It gets transpiled to:

Hello({'T' : MyLibrary.Function });

It should be:

Hello({'T' : Function });

This issue was already found and fixed as part of the .meta.js generation. See existing fix: https://github.com/DerivcoIpswich/dsharp/blob/master/src/DSharp.Compiler/Generator/ScriptMetadataGenerator.cs#L174