BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2019-08-04

class X::Export::NameClash

Compilation error due to exporting the same symbol twice

class X::Export::NameClash does X::Comp { }
Code

Compile time error thrown when a symbol is exported twice.

For example

sub f() is export { };
{
    sub f() is export { }
}
Code

dies with

===SORRY!===
A symbol '&f' has already been exported
Code

Methods§

method symbol§

Returns the symbol that is exported twice.