Improve error message for attempted use of '..' in record update (#15712)

* Update GHC_REV

* Add test case
This commit is contained in:
Moisés Ackerman 2022-12-01 10:07:29 +01:00 committed by GitHub
parent 1cb6bc63f9
commit badfb9dcea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -9,7 +9,7 @@ GHC_LIB_PATCHES = [
]
GHC_REPO_URL = "https://github.com/digital-asset/ghc"
GHC_REV = "17268c72ca9983883426e996287a284802a30539"
GHC_REV = "f9ed5461d960dabe3e08e250a5c520bd1771baca"
GHC_PATCHES = [
]

View File

@ -0,0 +1,15 @@
-- Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
-- SPDX-License-Identifier: Apache-2.0
module DotDotUpdateSyntaxError where
import Daml.Script
data D = D with f1 : Int, f2 : Int
-- @ERROR range=14:17-14:17; The syntax '..' can only be used with a record constructor
setup : Script ()
setup = script do
let d1 = D 1 2
debug(d2 with ..)
return ()