Skip to content

Tuple is displayed as () #135

Closed
Closed
@leandromoh

Description

@leandromoh

Since expression tree are interpreted in AOT (then slow), I am considering use this library to help me translate my expression tree to C# source code and compile it with source generator, but I found the following issue:

I had the following expression

Expression<Func<ValueTuple<int,int,int>>> ex => () => new ValueTuple<int,int,int>();

I was expecting to see one of the following valid constructs

  • new ValueTuple<int,int,int>()
  • default(ValueTuple<int,int,int>)
  • default((int,int,int))

however the displayed text is (), which is not a valid value for ValueTuple<int,int,int> during c# compilation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions