mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 00:35:25 +03:00
Improve error message for attempted use of '..' in record update (#15712)
* Update GHC_REV * Add test case
This commit is contained in:
parent
1cb6bc63f9
commit
badfb9dcea
@ -9,7 +9,7 @@ GHC_LIB_PATCHES = [
|
||||
]
|
||||
|
||||
GHC_REPO_URL = "https://github.com/digital-asset/ghc"
|
||||
GHC_REV = "17268c72ca9983883426e996287a284802a30539"
|
||||
GHC_REV = "f9ed5461d960dabe3e08e250a5c520bd1771baca"
|
||||
GHC_PATCHES = [
|
||||
]
|
||||
|
||||
|
@ -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 ()
|
Loading…
Reference in New Issue
Block a user