From 3e217a0d9a7231434c2f4547d3ef40c8ee0d391f Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Tue, 22 Mar 2022 20:24:10 +0100 Subject: [PATCH] Streamline IO::Special a bit --- src/core.c/IO/Special.pm6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core.c/IO/Special.pm6 b/src/core.c/IO/Special.pm6 index 83a6a292011..3fa62ce04a7 100644 --- a/src/core.c/IO/Special.pm6 +++ b/src/core.c/IO/Special.pm6 @@ -1,10 +1,10 @@ my class Instant { ... } class IO::Special does IO { - has Str $.what; + has Str $.what is built(False); - method new(Str:D \what --> IO::Special:D) { - nqp::p6bindattrinvres(nqp::create(self),self,'$!what',what) + method new(str $what --> IO::Special:D) { + nqp::p6bindattrinvres(nqp::create(self),self,'$!what',$what) } multi method WHICH(IO::Special:D: --> ValueObjAt) { nqp::box_s(