dotty-knowledge icon indicating copy to clipboard operation
dotty-knowledge copied to clipboard

normal parameters after givens

Open robstoll opened this issue 6 years ago • 0 comments

Link to the knowledge: https://dotty.epfl.ch/docs/reference/contextual/motivation.html

More information: in the doc:

Given clauses [...] allow us to have several implicit parameter sections, and to have implicit parameters followed by normal ones.

however defining:

 def f given (u: Int) given (x: String) (a:Int)= ???

gives the following error (on scastie)

normal parameters cannot come after given clauses

I open this issue as I am not sure which source is correct

robstoll avatar Sep 12 '19 05:09 robstoll