Skip to content

Tuple.fromArray fails if not given concrete tuple type parameter #6506

Closed
@nicolasstucki

Description

@nicolasstucki
 val t: Tuple = Tuple.fromArray(Array[Object]("1", "2", "3"))

fails with

-- Error: /Users/nicolasstucki/GitHub/dotty/library/src-3.x/scala/Tuple.scala:168:21 
168 |    inline constValue[BoundedSize[T]] match {
    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |not a constant type: scala.Tuple.BoundedSize[Nothing]; cannot take constValue
    | This location is in code that was inlined at Foo.scala:2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions