KScript docs
EN

Error codes

KS6025

A mask's symbol that maps a character to itself. Every character of a mask's layout already matches a cell that holds the same character, so symbols is only for the ones that mean something else.

<type name="Block" extends="Mask">
  <field name="layout" default="```text
      ##
      ```" />
  <field name="symbols" default="{ '#': '#' }" /> <!-- the warning: '#' already matches '#'. -->
</type>
type Block extends Mask {
  layout: ```text
    ##
    ```
  symbols: { '#': '#' } // the warning: '#' already matches '#'.
}
<type name="Block" extends="Mask">
  <field name="layout" default="```text
      ##
      ```" />
</type>
type Block extends Mask {
  layout: ```text
    ##
    ```
}

The mask still works, so this is a warning. Remove '#' takes the entry out, and Remove symbols takes symbols out when it was the last entry.

Edit this page on GitHub