# New Ticket Created by Vittore Scolari # Please include the string: [perl #132052] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=132052 >
The following script: use NativeCall :types; class a { method new(size_t $size, :$init, :$type) { my $s = $size; Blob[size_t].new($s); } } my $a = a.new(10); class b { method new(size_t $size, :$init, :$type) { Blob[size_t].new($size); } } my $b = b.new(12); dies with error Type check failed in initializing element #0 to Blob[NativeCall::Types::size_t]; expected NativeCall::Types::size_t but got Int (12)