File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ //> using options -source 3.5 -migration
2
+
3
+ final class StrictEqual [V ]
4
+ final class Less [V ]
5
+ type LessEqual [V ] = Less [V ] | StrictEqual [V ]
6
+
7
+ object TapirCodecIron :
8
+ trait ValidatorForPredicate [Value , Predicate ]
9
+ trait PrimitiveValidatorForPredicate [Value , Predicate ]
10
+ extends ValidatorForPredicate [Value , Predicate ]
11
+
12
+ given validatorForLessEqual [N : Numeric , NM <: N ](using
13
+ ValueOf [NM ]
14
+ ): PrimitiveValidatorForPredicate [N , LessEqual [NM ]] = ???
15
+ given validatorForDescribedOr [N , P ](using
16
+ IsDescription [P ]
17
+ ): ValidatorForPredicate [N , P ] = ???
18
+
19
+ trait IsDescription [A ]
20
+ object IsDescription :
21
+ given derived [A ]: IsDescription [A ] = ???
22
+
23
+ @ main def Test = {
24
+ import TapirCodecIron .{* , given }
25
+ type IntConstraint = LessEqual [3 ]
26
+ summon[ValidatorForPredicate [Int , IntConstraint ]] // warn
27
+ }
You can’t perform that action at this time.
0 commit comments