Skip to content

Snippets which include @main #879

@adamw

Description

@adamw

Currently, such snippets cause the following error:

error: x.md:51:1:
method xyz cannot be a main method since it cannot be accessed statically
@main def xyz(): Unit =
^^^^^

maybe it would make sense to include an option to filter out @main from the snippets text, so that example code could still be verified, but also copy-pasteable for anybody wanting to try on their own?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions