Skip to content

'Common Language Runtime detected an invalid program' with int.TryParse #147

@SteveWilkes

Description

@SteveWilkes

Hello!

I'm getting a 'Common Language Runtime detected an invalid program' error thrown when I invoke a fast-compiled Func consisting of a single block with a single variable which it populates and returns like this:

int intValue;
int.TryParse("123", out intValue) ? intValue : default(int);

I've created a repro repository here.

Cheers!

Steve

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions