Feature request
What is the usage?
class Foo
{
private static expression: Expression<(x: any) => boolean> = x => !!x;
}
What is the expected behavior?
Field expression is handled and processed by the transformer. So Expression object will be assigned to expression field.
What is motivation or use case for adding/changing the behavior?
To keep behavior as close as possible to the C#.
How should this be implemented in your opinion?
else if (ts.isPropertyDeclaration(parent) && parent.initializer == node && (
(parent.type && isExpressionTypeNode(parent.type, checker))
|| isExpressionType(checker.getTypeAtLocation(node))
))
{
....
}
This check is already prepared in main branch.
Are you willing to work on this yourself?
Doesn't matter.
Feature request
What is the usage?
What is the expected behavior?
Field
expressionis handled and processed by the transformer. So Expression object will be assigned toexpressionfield.What is motivation or use case for adding/changing the behavior?
To keep behavior as close as possible to the C#.
How should this be implemented in your opinion?
This check is already prepared in main branch.
Are you willing to work on this yourself?
Doesn't matter.