Skip to content

Commit

Permalink
Regression test for scala#16076
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky authored and Kordyjan committed Sep 26, 2022
1 parent 11d7114 commit cf888c4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pos/i16076.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
trait Column[V]
trait ColumnPath

trait ColumnFactory[V, C <: Column[V]]:
def apply(columnPath: ColumnPath): C

object ColumnFactory:
private def apply[V, C <: Column[V]](f: String => C): ColumnFactory[V, C] =
columnPath => f(columnPath.toString())

0 comments on commit cf888c4

Please sign in to comment.