Skip to content

Commit 494c2dd

Browse files
committed
Remove use of unstable inline parameter path
See scala/scala3#15511
1 parent 16d26fc commit 494c2dd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

quill-sql-tests/src/test/scala/io/getquill/examples/TypelevelUsecase.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ object TypelevelUsecase {
3939
rp <- query[RoleToPermission].join(rp => rp.roleId == r.id)
4040
p <- query[Permission].join(p => p.id == rp.roleId)
4141
} yield (s, r, p)
42-
43-
inline def path[F, T](using inline path: Path[F, T]): path.Out = path.get
44-
42+
43+
inline def path[F, T](using path: Path[F, T]): path.Out = path.get
44+
4545
inline def q1 = quote { path[User, Role].filter(so => so._2.name == "Drinker") }
4646

4747
//inline def q1 = quote { path[User, Permission].filter(urp => urp._2.name == "GuiUser" && urp._1.name == "Joe") }

quill-sql-tests/src/test/scala/io/getquill/examples/TypelevelUsecase_WithPassin.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ object TypelevelUsecase_WithPassin {
3939
p <- query[Permission].join(p => p.id == rp.roleId)
4040
} yield (s, r, p)
4141

42-
inline def path[F, T](inline from: F)(using inline path: Path[F, T]): path.Out = path.get(from)
43-
42+
inline def path[F, T](inline from: F)(using path: Path[F, T]): path.Out = path.get(from)
43+
4444
inline def joes = query[User].filter(u => u.name == "Joe")
4545
// Change to 'symbol' and odd set of explosions happen
4646
inline def q1 = quote { joes.flatMap(j => path[User, Role](j)).filter(so => so._2.name == "Drinker") }

0 commit comments

Comments
 (0)