Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f1605be

Browse files
committedMay 23, 2025
Implement tighter typing of ZApi, so that we can (inelegantly) expose SelfLogging as zapi.inner.SelfLogging until scala/scala3#23245 is fixed.
1 parent a6b61f5 commit f1605be

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed
 

‎build.mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ object `package` extends RootModule with ScalaModule with PublishModule {
8484
}
8585

8686
object test extends ScalaModule {
87-
def moduleDeps = Seq(build,mlog,scribe)
87+
def moduleDeps = Seq(build,mlog,scribe,zio)
8888
override def scalaVersion = Common.scalaVersion
8989
override def scalacOptions = T { Common.scalacOptions }
9090
}

‎test/src/logadapter/test/Hello.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package logadapter.test
22

3-
43
// I'd like to be able to elegantly abstract over the Api objects.
54
// But it's tricky, and I'm hitting this bug, so I'm going to go with inelegant repetition for now!
65
//

‎zio/src/logadapter/zio/ZApi.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package logadapter.zio
22

33
import zio.{UIO,ZIO}
44

5-
class ZApi[T <: logadapter.LogAdapter]( val inner : logadapter.Api[T] ):
5+
class ZApi[T <: logadapter.LogAdapter, U <: logadapter.Api[T]]( val inner : U ):
66
import inner.*
77
export inner.*
88

0 commit comments

Comments
 (0)
Please sign in to comment.