Skip to content

Staging code example raises compiler warning #19211

Closed
@Bersier

Description

@Bersier

Compiler version

3.3.1

Minimized example

From the Scala 3 Reference

// libraryDependencies += "org.scala-lang" %% "scala3-staging" % scalaVersion.value
import scala.quoted.staging

given staging.Compiler = staging.Compiler.make(getClass.getClassLoader)

Compiler output

Suspicious top-level unqualified call to getClass
given staging.Compiler = staging.Compiler.make(getClass.getClassLoader)

Expectation

Code examples from the Scala 3 Reference shouldn't raise compiler warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions