Skip to content

Commit 9c97eac

Browse files
authored
Added support for defining functions which have a tuple as a generic parameter. (#285)
Previously defining this would work: ```csharp Linker.DefineFunction<int, (int, int)>("module", "name", (int a) => (a, a)); ``` But doing this would not work: ```csharp void DefineWrapper<TIn, TOut>(Func<TIn, TOut> func) { Linker.DefineFunction<TIn, TOut>("module", "name", func); } DefineWrapper<int, (int, int)>((int a) => (a, a)); ``` Even though they're ultimately doing the same thing, just with one more level of generic typing.
1 parent 9fbad84 commit 9c97eac

File tree

5 files changed

+195
-58
lines changed

5 files changed

+195
-58
lines changed

0 commit comments

Comments
 (0)