Skip to content

Specified type is not checked for use! binding #19005

@DedSec256

Description

@DedSec256

Repro:

async {
    use! x: askjdhaskjd = failwith ""
    return 5
}

The type askjdhaskjd does not exist, but the code compiles successfully, and there are no errors in the editor.

Image

.NET SDK 10.0.100-rc.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Compiler-CheckingType checking, attributes and all aspects of logic checkingArea-ComputationExpressionsEnd-to-end experience for computation expressions (except async and state machine compilation)Bug

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions