class A { has Str $.x ; submethod TWEAK { say 'Test'; say $!x ; } } A.new;