#!/usr/bin/perl6
class  Valute {
    has Str $.currency is rw = "test";
    has $.fun;
   
    method new(Str $currency_?, Str :$currency = $currency_) {
        say "asd";

    }

    method fun{
        self.currency.say
    }

}
my $a = Valute.new(currency=>"asdf");
$a.fun;