inconsistent scoping rules with events

Description

This works as expected:

But this doesn't print anything:

This does though:

I think I understand how it works now, but the scoping rules seem a bit inconsistent for events versus other data types.

Environment

None

Assignee

Unassigned

Reporter

dmandelb

Labels

None

External issue ID

984

Components

Affects versions

Priority

Low
Configure