Hi,
Using the next code I get an error on the instantiation of $d2;
---
use v6;
class ABC {
method s ( Int $i ) { say $i + 10; }
}
subset DEF of ABC;
my ABC $a .= new;
$a.s(10); # 20
my DEF $d1 = $a;
$d1.s(11); # 21
my DEF $d2 .= new;
$d2.s(12);
---
Error is
You cannot create an inst
Subset types are not object types.
A subset is basically a bit of checking code and base type associated with
a new type name.
In something like:
my ABC $a .= new;
That is exactly the same as:
my ABC $a = ABC.new;
Well there is no functional `.new` method on any subset types, so
`DEF.
Hello,
I just updated to Rakudo-2020.06, and while updating many of my
modules to their latest versions I saw an error installing/updating
(Raku) LibCurl. Below, the first few lines of the error seen with
LibCurl::Easy (and EasyHandle):
===> Testing: LibCurl:ver<1.0>:auth:api<1>
[LibCurl] # Faile