use super::*; #[test] fn test_transfer_precreated_port_without_using() { compile_and_create_component(" primitive port_sender(out> tx) { channel a -> b; sync put(tx, b); } primitive port_receiver(in> rx) { sync auto a = get(rx); } composite constructor() { channel a -> b; new port_sender(a); new port_receiver(b); } ", "constructor", no_args()); }