Skip to content

Commit

Permalink
Turn on capture checking
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Aug 8, 2023
1 parent 88caa0f commit 67f4b42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/time.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import scala.quoted.*
import java.util as ju
import java.time as jt

import language.experimental.captureChecking

package calendars:
given julian: RomanCalendar() with
def leapYear(year: Y): Boolean = year%4 == 0
Expand Down
2 changes: 2 additions & 0 deletions src/core/timeapi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ package anticipation

import aviation.*

import language.experimental.captureChecking

package timeApi:
given aviationApi: (GenericInstant[Timing.Instant] & GenericDuration[Timing.Duration]) =
new GenericInstant[Timing.Instant] with GenericDuration[Timing.Duration]:
Expand Down
2 changes: 2 additions & 0 deletions src/core/timezone.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import digression.*

import scala.io.*

import language.experimental.captureChecking

object TzdbError:
given AsMessage[Issue] =
case Issue.CouldNotParseTime(time) => msg"could not parse time $time"
Expand Down

0 comments on commit 67f4b42

Please sign in to comment.