Back to Scala3

E150: No Extension Method Allowed

docs/_docs/reference/error-codes/E150.md

3.8.4721 B
Original Source

E150: No Extension Method Allowed

This error is defined for cases where an extension method is incorrectly nested within another extension clause that already has collective parameters. When an extension clause defines collective type or value parameters, the methods inside it share those parameters. Attempting to define another nested extension within such a clause is not allowed.

Note This error was never emitted by stable Scala 3 compiler.

<!-- SOURCE-ONLY: Remove the notice below once this page has been manually updated. --> <aside class="warning"> This reference page was created with LLM assistance - the description of the error code may not be accurate or cover all possible scenarios. </aside>