elm / error-message-catalog

A catalog of broken Elm programs / data to improve error messages
BSD 3-Clause "New" or "Revised" License
173 stars 17 forks source link

Html.div expects both 2 and 3 arguments. #234

Open rtavenner opened 7 years ago

rtavenner commented 7 years ago

When I try to compile this code:

import Html
main = Html.div [] [] [] []

I get two errors:

-- TYPE MISMATCH --------------------------------------------------------------- 

Function `div` is expecting 3 arguments, but was given 4.

2|        Html.div [] [] [] []
                            ^^
Maybe you forgot some parentheses? Or a comma?

-- TYPE MISMATCH --------------------------------------------------------------- 

Function `div` is expecting 2 arguments, but was given 4.

2|        Html.div [] [] [] []
                         ^^^^^
Maybe you forgot some parentheses? Or a comma?

I should only get the second error.