Skip to content

Surface.of[Int] after Surface.of[1] returns Surface.of[Object] #3813

@ikeyan

Description

@ikeyan
Surface.of[1] // Object
Surface.of[Int] // Object
Surface.of[Seq[Int]].toString() == "Seq[Object]"

// All of these return Object if run in this order
Surface.of[1.0]
Surface.of[Double]

Surface.of['a']
Surface.of[Char]

Surface.of[true]
Surface.of[Boolean]

This happens because fullTypeNameOf returns the same key for 1 and Int, and genericSurfaceFactory returns Object for 1.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions