playframework/playframework
Unable to create a routes file with same name as a method in Predef
Ouverte
#10 204 ouverte le 21 avr. 2020
help wantedtype:improvement
Métriques du dépôt
- Stars
- (12 623 étoiles)
- Métriques de merge PR
- (Merge moyen 10j 17h) (69 PRs mergées en 30 j)
Description
I created a Play routes file with
/some-endpoint identity.Routes
The compiler barfed with this:
stable identifier required, but scala.Predef.identity[Nothing] found.
[error] -> /some-endpoint identity.Routes
Looks like the compiler can't differentiate between a user-defined name for a route file and the Predef identity method. Is this a bug in Play.