class X::Placeholder::Block does X::Comp {}

在不允许签名的块中使用占位符变量时抛出。

例如

class A { $^foo }

使用

Placeholder variable $^foo may not be used here because the surrounding block takes no signature

方法§

方法占位符§

返回(第一个)非法使用的占位符的名称。

类型图§

X::Placeholder::Block 的类型关系
raku-type-graph 中文 Block 中文 Block Code 中文 Code Block->Code 中文 Mu 中文 Mu Any 中文 Any Any->Mu 中文 Callable 中文 Callable Code->Any 中文 Code->Callable 中文 Routine 中文 Routine Routine->Block 中文 Macro 中文 Macro Macro->Routine 中文 Sub 中文 Sub Sub->Routine 中文 Method 中文 Method Method->Routine 中文 Submethod 中文 Submethod Submethod->Routine 中文 Regex 中文 Regex Regex->Method 中文

展开上面的图表