You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In signal_test.rs, the test signal_symbols_external illustrates that we can connect to an external object's signals by using the emitter.signals() method.
However, if Emitter is located in another file, its signals are private from the perspective of the receiver. Attempting to make the signals public results in a compilation error:
#[signal] must not have a visibility specifier; signals are always public
For instance if I make the following change, the compiler gives me an error:
In signal_test.rs, the test
signal_symbols_external
illustrates that we can connect to an external object's signals by using theemitter.signals()
method.However, if
Emitter
is located in another file, its signals are private from the perspective of the receiver. Attempting to make the signals public results in a compilation error:For instance if I make the following change, the compiler gives me an error:
The text was updated successfully, but these errors were encountered: