-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify nat for scala 3
- Loading branch information
Showing
8 changed files
with
243 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,36 @@ | ||
package no.nrk.bigquery.internal | ||
/* | ||
* Copyright 2020 NRK | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import scala.compiletime.ops.int.S | ||
package no.nrk.bigquery.internal | ||
|
||
trait Nat | ||
sealed trait Nat | ||
|
||
object nat { | ||
|
||
type _0 = S[0] with Nat | ||
type _1 = S[1] with Nat | ||
type _2 = S[2] with Nat | ||
type _3 = S[3] with Nat | ||
type _4 = S[4] with Nat | ||
type _5 = S[5] with Nat | ||
type _6 = S[6] with Nat | ||
type _7 = S[7] with Nat | ||
type _8 = S[8] with Nat | ||
type _9 = S[9] with Nat | ||
type _10 = S[10] with Nat | ||
type _11 = S[11] with Nat | ||
type _12 = S[12] with Nat | ||
type _13 = S[13] with Nat | ||
type _14 = S[14] with Nat | ||
type _15 = S[15] with Nat | ||
type _16 = S[16] with Nat | ||
type _17 = S[17] with Nat | ||
type _18 = S[18] with Nat | ||
type _19 = S[19] with Nat | ||
type _20 = S[20] with Nat | ||
type _21 = S[21] with Nat | ||
type _22 = S[22] with Nat | ||
} | ||
type _0 = 0 with Nat | ||
type _1 = 1 with Nat | ||
type _2 = 2 with Nat | ||
type _3 = 3 with Nat | ||
type _4 = 4 with Nat | ||
type _5 = 5 with Nat | ||
type _6 = 6 with Nat | ||
type _7 = 7 with Nat | ||
type _8 = 8 with Nat | ||
type _9 = 9 with Nat | ||
type _10 = 10 with Nat | ||
type _11 = 11 with Nat | ||
type _12 = 12 with Nat | ||
type _13 = 13 with Nat | ||
type _14 = 14 with Nat | ||
type _15 = 15 with Nat | ||
type _16 = 16 with Nat | ||
type _17 = 17 with Nat | ||
type _18 = 18 with Nat | ||
type _19 = 19 with Nat | ||
type _20 = 20 with Nat | ||
type _21 = 21 with Nat | ||
type _22 = 22 with Nat | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters