Skip to content

constValueOpt doesn't work for class parameters #17387

Closed
@doofin

Description

@doofin

Compiler version

3.2.2

Minimized code

import scala.compiletime.*

class c2[i <: Int] { println("constValueOpt:" + constValueOpt[i]) }
new c2[2]

Output

constValueOpt:None

Expectation

should be constValueOpt:Some(2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    itype:bugstat:needs triageEvery issue needs to have an "area" and "itype" label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions