#!/usr/bin/perl6
class Valute {
has Str $.currency is rw = "test";
has $.fun;
method fun{
self.currency.say
}
}
my $a = Valute.new(a=>"asdf");
$a.fun();
IyEvdXNyL2Jpbi9wZXJsNgpjbGFzcyAgVmFsdXRlIHsKICAgIGhhcyBTdHIgJC5jdXJyZW5jeSBpcyBydyA9ICJ0ZXN0IjsKICAgIGhhcyAkLmZ1bjsKCgogICAgbWV0aG9kIGZ1bnsKICAgICAgICBzZWxmLmN1cnJlbmN5LnNheQogICAgfQoKfQpteSAkYSA9IFZhbHV0ZS5uZXcoYT0+ImFzZGYiKTsKJGEuZnVuKCk7