Skip to content

The expected way to deprecate an implicit class doesn't work #10152

Open
@scabug

Description

@scabug
Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_102).
Type in expressions for evaluation. Or try :help.

scala> @deprecated("Foo is deprecated", "1.0.0")
     | implicit class Foo(i: Int) { def bar = i }
defined class Foo

scala> 1.bar // Expect a warning. Actually no warning
res0: Int = 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions