### ----------------------------------------------------
### -- Red
### -- Licenses: Artistic-2.0
### -- Authors: Fernando Correa de Oliveira
### -- File: t/20-new-with-id.rakutest
### ----------------------------------------------------
use Red;
use Test;

model Bla{ has Str $.id is id }
model Ble{ has Str $.other-name is id }

is Bla.^new-with-id("blablabla").id, "blablabla";
is Ble.^new-with-id("blablabla").other-name, "blablabla";

done-testing;


