Skip to content

Commit 8cab697

Browse files
committed
fix "match may not be exhaustive" warning
1 parent 9f91345 commit 8cab697

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

dev-mode/play-routes-compiler/src/main/twirl/play/routes/compiler/static/reverseRouter.scala.twirl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import @if(!i.startsWith("_root_.")){_root_.}@i}
3030
@markLines(routes: _*)
3131
def @(method)@(reverseSignature(routes)): Call = @ob
3232
@defining(reverseParameters(routes)) { params =>
33-
(@reverseMatchParameters(params, true)) match @ob
33+
((@reverseMatchParameters(params, false)): @@unchecked) match @ob
3434
@reverseUniqueConstraints(routes, params) { (route, parameters, parameterConstraints, localNames) =>
3535
@markLines(route)
3636
case (@parameters) @parameterConstraints =>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
2+
3+
enablePlugins(PlayScala)
4+
5+
def Scala3 = "3.7.2"
6+
7+
scalaVersion := Scala3
8+
9+
crossScalaVersions := Seq("2.13.16", Scala3)
10+
11+
scalacOptions += "-Werror"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
2+
3+
GET /aaa/*file controllers.Assets.versioned(path="/public/aaa", file: Asset)
4+
5+
GET /bbb/*file controllers.Assets.versioned(path="/public/bbb", file: Asset)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com>
2+
3+
addSbtPlugin("org.playframework" % "sbt-plugin" % sys.props("project.version"))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
> + compile

0 commit comments

Comments
 (0)