mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-19 00:37:23 +03:00
Ensure that -Werror converts parser warnings into errors (#11511)
closes #11399 changelog_begin changelog_end
This commit is contained in:
parent
bda35ca234
commit
ac49d69e13
@ -17,8 +17,8 @@ load("@os_info//:os_info.bzl", "is_linux", "is_windows")
|
||||
load("@dadew//:dadew.bzl", "dadew_tool_home")
|
||||
load("@rules_haskell//haskell:cabal.bzl", "stack_snapshot")
|
||||
|
||||
GHCIDE_REV = "2ba61893ea07df26dcacf165a79dd6d0381a3dc8"
|
||||
GHCIDE_SHA256 = "f3a2fb693d1e6d3beda542639de027a94ae3417fe483765510eceb2ad9ea2b29"
|
||||
GHCIDE_REV = "e04b5386b3741b839eb5c3d2a2586fd2aa97229c"
|
||||
GHCIDE_SHA256 = "1d27926e0ad3c2a9536f23b454875a385ecc766ae68ce48a0ec88d0867884b46"
|
||||
JS_JQUERY_VERSION = "3.3.1"
|
||||
JS_DGTABLE_VERSION = "0.5.2"
|
||||
JS_FLOT_VERSION = "0.8.3"
|
||||
|
11
compiler/damlc/tests/daml-test-files/ParserWerror.daml
Normal file
11
compiler/damlc/tests/daml-test-files/ParserWerror.daml
Normal file
@ -0,0 +1,11 @@
|
||||
-- Copyright (c) 2021, Digital Asset (Switzerland) GmbH and/or its affiliates.
|
||||
-- All rights reserved.
|
||||
|
||||
{-# OPTIONS_GHC -Werror=missing-space-after-bang #-}
|
||||
|
||||
-- @ERROR range=11:3-11:5; perhaps you want to add a space after the bang for clarity
|
||||
|
||||
module ParserWerror where
|
||||
|
||||
(!) : a -> a -> ()
|
||||
_ !_ = ()
|
11
compiler/damlc/tests/daml-test-files/ParserWno_error.daml
Normal file
11
compiler/damlc/tests/daml-test-files/ParserWno_error.daml
Normal file
@ -0,0 +1,11 @@
|
||||
-- Copyright (c) 2021, Digital Asset (Switzerland) GmbH and/or its affiliates.
|
||||
-- All rights reserved.
|
||||
|
||||
{-# OPTIONS_GHC -Wno-error=missing-space-after-bang #-}
|
||||
|
||||
-- @WARN range=11:3-11:5; perhaps you want to add a space after the bang for clarity
|
||||
|
||||
module ParserWno_error where
|
||||
|
||||
(!) : a -> a -> ()
|
||||
_ !_ = ()
|
Loading…
Reference in New Issue
Block a user