Skip to content

Commit

Permalink
KeyedTableQuery: improve type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
nafg committed Jul 28, 2014
1 parent 37737d4 commit 0f893f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/scala/slick/additions/KeyedTable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ trait KeyedTableComponent extends JdbcDriver {
def * = all
}

class KeyedTableQuery[K : BaseColumnType, A, T <: KeyedTable[K, A]](cons: Tag => T) extends TableQuery[T](cons) with Lookups[K, A] {
class KeyedTableQuery[K : BaseColumnType, A, T <: KeyedTable[K, A]](cons: Tag => (T with KeyedTable[K, A])) extends TableQuery[T](cons) with Lookups[K, A] {
import simple.{ BaseColumnType => _, MappedColumnType => _, _ }
type Key = K
type TableType = T
Expand Down

0 comments on commit 0f893f6

Please sign in to comment.