on master help sign in
Disallow extended record types with no fields, resolves #280
commit11a60de5444291a77d79c75cecade62f1a41b796 authorEvan Czaplicki <info@elm-lang.org> dateMon 14 Oct 2013, 17:42 (13 years ago) parent115b139
1 file changed+1−1
compiler/Parse/Type.hs+1−1
compiler/Parse/Type.hs+1−1
@@ -34,7 +34,7 @@ record =
3434 t <- tvar
3535 whitespace >> string "|" >> whitespace
3636 return t
37− fields = commaSep $ do
37+ fields = commaSep1 $ do
3838 lbl <- rLabel
3939 whitespace >> hasType >> whitespace
4040 (,) lbl <$> expr