Skip to content

Commit d0b2604

Browse files
wip Stability guarantees disclaimer
1 parent 8db24d8 commit d0b2604

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

library/src/scala/compiletime/testing/Error.scala

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
package scala.compiletime.testing
22

3-
/** Represents a compile-time error */
3+
/** Represents a compile-time error.
4+
*
5+
* @see scala.compiletime.testing.typeCheckErrors
6+
*
7+
* IMPORTANT: No stability guarantees are provided on the format of these
8+
* errors. This means the format and the API may change from
9+
* version to version. This API is to be used for testing purposes
10+
* only.
11+
*/
412
case class Error(message: String, lineContent: String, column: Int, kind: ErrorKind)
513

614
/** An error can be either a parse-time or a typecheck-time */

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ package object testing {
1414
inline def typeChecks(inline code: String): Boolean =
1515
error("`typeChecks` was not checked by the compiler")
1616

17-
/** Whether the code type checks in the current context?
17+
/** Whether the code type checks in the current context? If not,
18+
* returns a list of errors encountered on compilation.
19+
* IMPORTANT: No stability guarantees are provided on the format of these
20+
* errors. This means the format and the API may change from
21+
* version to version. This API is to be used for testing purposes
22+
* only.
1823
*
1924
* @param code The code to be type checked
2025
*

0 commit comments

Comments
 (0)