playframework/playframework
Unable to create a routes file with same name as a method in Predef
開放
#10,204 建立於 2020年4月21日
help wantedtype:improvement
倉庫指標
- 星標
- (12,623 顆星)
- PR 合併指標
- (平均合併 10天 17小時) (30 天內合併 69 個 PR)
描述
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.