Skip to content

Commit 263c815

Browse files
committed
Move test and add return type
There's a weird interaction with typechecks that means we need an explicit return type here.
1 parent a5b4af1 commit 263c815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
inline def failme1() = compiletime.error("fail")
22
transparent inline def failme2() = compiletime.error("fail")
33

4-
@main def Test =
4+
@main def Test: Unit = {
55
assert(!compiletime.testing.typeChecks("failme1()"))
66
assert(!compiletime.testing.typeChecks("failme2()"))
77
assert(!compiletime.testing.typeChecks("a b c"))
88
assert(!compiletime.testing.typeChecks("true: Int"))
9-
9+
}

0 commit comments

Comments
 (0)