class C {
	has $.name is rw;
}

module M {
	our C @arr;

	sub wr($i) { 
		# BAD:
		@arr[$i] .= new( name => 'arthur' ); 

		# GOOD:
		# my C $x .= new( name => 'arthur' ); @arr[$i] = $x;

		say "Writing $i: {@arr[$i]}"
	}

	wr(3);
	wr(2);
}

@M::arr.say;
