Skip to content

Empty Tuple is not instance of Product #9033

Closed
@letalvoj

Description

@letalvoj

Minimized code w Output

scala> ().asInstanceOf[Tuple].isInstanceOf[Product]
val res5: Boolean = false

scala> (1,2,3).asInstanceOf[Tuple].isInstanceOf[Product]
val res6: Boolean = true

Expectation

I should be able to call ($m: Mirror.Product).fromProduct(()). Currently it's not possible due to the bug above.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions