=htp #18615 rm comment on workaround in Scala 2.10

This commit is contained in:
Konrad Malawski 2016-03-21 11:38:02 +01:00 committed by Konrad Malawski
parent b9d1fa74ba
commit 4290b5640d

View file

@ -37,22 +37,12 @@ trait FormFieldDirectives extends ToNameReceptacleEnhancements {
/**
* Extracts an HTTP form field from the request.
* Rejects the request if the defined form field matcher(s) don't match.
*
* Due to a bug in Scala 2.10, invocations of this method sometimes fail to compile with an
* "too many arguments for method formField" or "type mismatch" error.
*
* As a workaround add an `import FormFieldDirectives.FieldMagnet` or use Scala 2.11.x.
*/
def formField(pdm: FieldMagnet): pdm.Out = pdm()
/**
* Extracts a number of HTTP form field from the request.
* Rejects the request if the defined form field matcher(s) don't match.
*
* Due to a bug in Scala 2.10, invocations of this method sometimes fail to compile with an
* "too many arguments for method formFields" or "type mismatch" error.
*
* As a workaround add an `import FormFieldDirectives.FieldMagnet` or use Scala 2.11.x.
*/
def formFields(pdm: FieldMagnet): pdm.Out = pdm()