Solutionunvalidated
If you define `aLambda` as follows instead — Since `Notifications.addListener` takes a parameter of type `Notifications.Listener`. Tension: it will not be garbage-collected since the `Listener` object will now have a strong reference held by `aLambda`. Outcome: then its type will be what is required by `addListener` and it will not be garbage-collected.
07ac4226-32de-4792-b024-5e0aa99828e2
If you define aLambda as follows instead — Since Notifications.addListener takes a parameter of type Notifications.Listener. Tension: it will not be garbage-collected since the Listener object will now have a strong reference held by aLambda. Outcome: then its type will be what is required by addListener and it will not be garbage-collected.