# New Ticket Created by Elizabeth Mattijsen # Please include the string: [perl #130493] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=130493 >
$ 6 'class A { method sink() { say "goodbye" } }; A’ WARNINGS for -e: Useless use of constant value A in sink context (line 1) I would expected this to say “goodbye” rather than being silent and issuing a warning. The fact that a class has a specific .sink method indicates that the developer had a plan for functioning in a sink environment. So it should a. call that method and b. not issue a warning. Adding an nqp::say(“sunk”) to Mu.sink reveals that in the above case Mu.sink *does* appear to be called.