Skip to content

Undefined type when compiling a Dotty-compiled module that uses annotations #3625

Closed
@jvican

Description

@jvican

I have module A with the following source file:

import scala.scalajs.reflect.annotation.EnableReflectiveInstantiation

@EnableReflectiveInstantiation
trait AbstractTestSuite {
  def properties: Properties[_]
}

Then, I have module B that uses AbstractTestSuite somehow. When compiling module B, I get the following error:

[error] undefined: new <notype> # 163215: TermRef(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class reflect)),annotation),EnableReflectiveInstantiation),<init>)

Looks like an error of annotations + tasty?

For context, see jvican/minitest@5d37226.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions