File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ trait TypeMapper[T] { outer =>
65
65
}
66
66
67
67
object TypeMapper {
68
+ def apply [T ](implicit t : TypeMapper [T ]): TypeMapper [T ] = t
68
69
69
70
/**
70
71
* These definitions are workarounds for a bug in the Scala 3 compiler
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ package object scalasql {
36
36
type Expr [T ] = core.Expr [T ]
37
37
38
38
type TypeMapper [T ] = core.TypeMapper [T ]
39
+ val TypeMapper = core.TypeMapper
39
40
40
41
val Config = core.Config
41
42
type Config = core.Config
Original file line number Diff line number Diff line change @@ -1452,7 +1452,7 @@ object WorldSqlTests extends TestSuite {
1452
1452
case class CityId2 (value : Int )
1453
1453
1454
1454
object CityId2 {
1455
- implicit def tm : TypeMapper [CityId2 ] = implicitly[ TypeMapper [Int ] ].bimap[CityId2 ](
1455
+ implicit def tm : TypeMapper [CityId2 ] = TypeMapper [Int ].bimap[CityId2 ](
1456
1456
city => city.value,
1457
1457
int => CityId2 (int)
1458
1458
)
You can’t perform that action at this time.
0 commit comments