Skip to content

Parsing exception while using 'as' operator #287

@pawel1708hp

Description

@pawel1708hp

I'm trying to use following expression:

string.IsNullOrEmpty(variable as string)

but it results with exception: DynamicExpresso.Exceptions.ParseException: ')' or ',' expected (at index 40).

Adding extra parenthesis as message suggests solves the issue, but the expression is obviously wrong then
string.IsNullOrEmpty(variable as string))

Seems there is something wrong with parser.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions