Subject: | method ( ... ) returns ( .. ) { unsupported |
The following 2 patterns don't appear to work presently :
method open_file ( File :$file! ) returns(Bool) {
}
and
method can_compute_size returns(Bool) {
}
As both are transformed into the form
sub foo returns(whatever) {
}
82: expecting ':' or ';' or '{' after definition or declaration of sub 'open_file' but saw 'returns'
82: sub open_file returns (Bool) { #__METHOD ( File :$file! )
167: expecting ':' or ';' or '{' after definition or declaration of sub 'can_compute_size' but saw 'returns'
167: sub can_compute_size returns (Bool){ #__METHOD
Thanks.
method open_file ( File :$file! ) returns(Bool) {
}
and
method can_compute_size returns(Bool) {
}
As both are transformed into the form
sub foo returns(whatever) {
}
82: expecting ':' or ';' or '{' after definition or declaration of sub 'open_file' but saw 'returns'
82: sub open_file returns (Bool) { #__METHOD ( File :$file! )
167: expecting ':' or ';' or '{' after definition or declaration of sub 'can_compute_size' but saw 'returns'
167: sub can_compute_size returns (Bool){ #__METHOD
Thanks.