You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, duplicate record fields only blow up in the daml-lf typechecker or indirectly when they are used somewhere. We should really produce a better error more directly. Unfortunately, GHC itself accepts the following program:
{-# LANGUAGE DuplicateRecordFields, DisambiguateRecordFields #-}
module Test where
data X = X { a :: Int, a :: Int }
It seems reasonable to add this check to our preprocessor.
The text was updated successfully, but these errors were encountered:
* Improve errors on duplicate record field names
fixes#8994
changelog_begin
changelog_end
* Apparently I was wrong about names
changelog_begin
changelog_end
* hlint
changelog_begin
changelog_end
* newlines don’t render well in daml build
changelog_begin
changelog_end
* maybe I should test if my code compiles before pushing
changelog_begin
changelog_end
Currently, duplicate record fields only blow up in the daml-lf typechecker or indirectly when they are used somewhere. We should really produce a better error more directly. Unfortunately, GHC itself accepts the following program:
It seems reasonable to add this check to our preprocessor.
The text was updated successfully, but these errors were encountered: