Skip to content

Commit 8db24d8

Browse files
wip Move Error interface in a separate file
1 parent 8ff45a0 commit 8db24d8

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package scala.compiletime.testing
2+
3+
/** Represents a compile-time error */
4+
case class Error(message: String, lineContent: String, column: Int, kind: ErrorKind)
5+
6+
/** An error can be either a parse-time or a typecheck-time */
7+
sealed trait ErrorKind // TODO make this enum, so far not doable because ScalaJS compilation fails on it
8+
object ErrorKind
9+
case object Parser extends ErrorKind
10+
case object Typer extends ErrorKind

library/src/scala/compiletime/testing/package.scala

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
package scala.compiletime
22

3-
import scala.quoted._
4-
53
package object testing {
64

7-
/** Represents a compile-time error */
8-
case class Error(message: String, lineContent: String, column: Int, kind: ErrorKind)
9-
10-
/** An error can be either a parse-time or a typecheck-time */
11-
sealed trait ErrorKind // TODO make this enum, so far not doable because ScalaJS compilation fails on it
12-
object ErrorKind
13-
case object Parser extends ErrorKind
14-
case object Typer extends ErrorKind
155

166
/** Whether the code type checks in the current context?
177
*

0 commit comments

Comments
 (0)