Ambiguous route should compile with warning (is this a bug?)

Not sure if this is just happening on my machine but according to the Phoenix guides I should get a warning when:

If we create an ambiguous route, the router will still compile, but we will get a warning. Let’s see this in action.

Define this route at the bottom of the scope “/”, HelloWeb do block in the router.

get “/”, RootController, :index

Then run mix compile at the root of your project.

It compiles without any kind of warning…

[hello]$ mix compile
Generated hello app
[hello]$ mix compile
Compiling 8 files (.ex)

Me too

1 Like

Please see