Course of Raku / Advanced / Containers / Scalar containers / Type constraints
Quiz — Type constraints
A container is declared as follows:
my Int $int;Which one of the assignments below causes a compile-time error?
| 0 | $int = 123; |
| 0 | $int = 100 + 23; |
| 0 | $int = '123'.Int; |
| 1 | $int = 123.45; |