Skip to content

Tasty could not load type and object pair if type is defined in package object #10499

Closed
@romanowski

Description

@romanowski

Minimized code

package example

// Ala fails Ola does not
package object typeAndObjects:
  type Ala

package typeAndObjects {
  object Ala
}

type Ola
object Ola

Output

To reproduce run scala3doc/generateTestcasesDocumentation on this commit.

Scala3doc will fail with:

class example.typeAndObjects.Ala cannot be unpickled because no class file was found

This construct is used e.g. in zio (IO class) and prevents scala3doc in documenting it.

Expectation

Tasy should be loaded without a failure

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions