Skip to content

Commit a9bdf22

Browse files
Add comment explaining why ErrorKind cannot FTTB be an enum
1 parent 266725f commit a9bdf22

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package scala.compiletime.testing
22

33
/** An error can be either a parse-time or a typecheck-time */
4-
sealed trait ErrorKind // TODO make this enum, so far not doable because ScalaJS compilation fails on it
4+
sealed trait ErrorKind // This should be an enum but currently, Dotty lib fails to
5+
// compile with an obscure error.
56
object ErrorKind:
67
case object Parser extends ErrorKind
78
case object Typer extends ErrorKind

vscode-dotty/out/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)