Skip to content

Subrange definition with ..< #6788

@Adrien79

Description

@Adrien79

I'm surprised that this fails to compile:

const size = 6
type A = range[0..<size]

and I have to type this instead:

const size = 6
type A = range[0..(size - 1)]

I thought it would be the same.

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