Skip to content

BigInt ranges #491

@bamarsha

Description

@bamarsha

From microsoft/qsharp-language#132:

I'd like to be able to write this:

for k in 0L..15L {
    ...
}

Currently this causes a compile error:

error QS0001: The type Int does not match the type BigInt

It should instead be equivalent to:

for k_helper in 0..15 {
    let k = IntAsBigInt(k_helper);
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions