Scala nested implicit type parameters

mert inan

Can you please explain the type T in this method definition? This is from gatling. I know that colon is for context bound values. here I see them nested. What is # for?

implicit def stringToExpression[T: TypeCaster: Types[NonValidable]#DoesNotContain: ClassTag](string: String): Expression[T] = string.el
Yuval Itzchakov

The following method signature is translated to:

implicit def stringToExpression(string: String)(implicit t: TyperCaster[T], nv: Types[NonValidable]#DoesNotContain[T], ct: ClassTag[T]) = string.el

# in this context is a Type Projection used to refer to the inner DoesNotContain[T] class.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Nested implicit macros seems not working for type parameters?

From Dev

Scala implicit conversions and parameters

From Dev

Declare a Function `type` with `implicit` parameters

From Dev

scala type classes implicit ambiguity

From Dev

Does the order of implicit parameters matter in Scala?

From Dev

Scala: How to apply implicit parameters to the different scope?

From Dev

Method call (with implicit parameters) without parenthesis in scala

From Dev

Scala creating functional objects using implicit parameters

From Dev

Method call (with implicit parameters) without parenthesis in scala

From Dev

Using Parametric Type in Implicit for Type Classes in Scala

From Dev

Nested Generic Type Parameters Parameters

From Dev

Scala Pickling and type parameters

From Dev

Scala - Method type parameters

From Dev

Implicit type cast not working for method parameters?

From Dev

Scala implicit TypeTag not propagating correctly (implicit type is Nothing)

From Dev

Scala type alias with type parameters

From Dev

Scala, suffix operator on implicit value type class

From Dev

Type alias optimization skipping implicit conversion in Scala?

From Dev

Stange return type using implicit in Scala

From Dev

Scala mock polymorphic methods with implicit type tag

From Dev

Nested template parameters and type deduction

From Dev

Scala: question marks in type parameters

From Dev

Type Parameters on Scala Macro Annotations

From Dev

Scala - extract Either type parameters

From Dev

Infering generic type parameters in Scala

From Dev

Type Parameters on Scala Macro Annotations

From Dev

Scala type parameters in various places

From Dev

Scala: What is the idiomatic way to bring implicit parameters into scope?

From Dev

Scala multiple implicit parameters with defaults resulting in ambiguous values

Related Related

  1. 1

    Nested implicit macros seems not working for type parameters?

  2. 2

    Scala implicit conversions and parameters

  3. 3

    Declare a Function `type` with `implicit` parameters

  4. 4

    scala type classes implicit ambiguity

  5. 5

    Does the order of implicit parameters matter in Scala?

  6. 6

    Scala: How to apply implicit parameters to the different scope?

  7. 7

    Method call (with implicit parameters) without parenthesis in scala

  8. 8

    Scala creating functional objects using implicit parameters

  9. 9

    Method call (with implicit parameters) without parenthesis in scala

  10. 10

    Using Parametric Type in Implicit for Type Classes in Scala

  11. 11

    Nested Generic Type Parameters Parameters

  12. 12

    Scala Pickling and type parameters

  13. 13

    Scala - Method type parameters

  14. 14

    Implicit type cast not working for method parameters?

  15. 15

    Scala implicit TypeTag not propagating correctly (implicit type is Nothing)

  16. 16

    Scala type alias with type parameters

  17. 17

    Scala, suffix operator on implicit value type class

  18. 18

    Type alias optimization skipping implicit conversion in Scala?

  19. 19

    Stange return type using implicit in Scala

  20. 20

    Scala mock polymorphic methods with implicit type tag

  21. 21

    Nested template parameters and type deduction

  22. 22

    Scala: question marks in type parameters

  23. 23

    Type Parameters on Scala Macro Annotations

  24. 24

    Scala - extract Either type parameters

  25. 25

    Infering generic type parameters in Scala

  26. 26

    Type Parameters on Scala Macro Annotations

  27. 27

    Scala type parameters in various places

  28. 28

    Scala: What is the idiomatic way to bring implicit parameters into scope?

  29. 29

    Scala multiple implicit parameters with defaults resulting in ambiguous values

HotTag

Archive