Skip to content

Compile-time successor of negative numbers  #6606

Closed
@biboudis

Description

@biboudis

Should S[-1] work and if yes (as it currently is) how should we handle the following? (now it doesn't type check).

val t1: scala.compiletime.S[-1] = 0 // OK
val t2: scala.compiletime.S[Int] = 1 // OK
val t3: scala.compiletime.S[Int] = 0 // this is an error now

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