Skip to content

Problem compiling enum on Scala.js #9809

Closed
@ekrich

Description

@ekrich

Minimized code

Scala.js 1.2.0
Dotty 0.27.0-RC1

enum ConfigSyntax extends jl.Enum[ConfigSyntax] {
  case JSON
  case CONF
  case PROPERTIES
}

Output

[error] Assignment to static member org.ekrich.config.ConfigSyntax.JSON not supported

Expectation

This works fine compiling for JVM so I would expect it to work for Scala.js as well.

Repo

https://github.com/ekrich/sconfig/tree/topic/dotty-js

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions