Skip to content

UsePatternMatching wrong fix template #34

@marodev

Description

@marodev

The following pattern should't be detected or fixed in a different way:

IborCoupon c = coupon as IborCoupon;
Utils.QL_REQUIRE(c != null, () => "IborCoupon required");

Current behaviour:

Utils.QL_REQUIRE(coupon is IborCoupon c, () => "IborCoupon required");

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions