forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ghc-lib, adding locations to errors with generic templates (di…
…gital-asset#2894) * Update ghc-lib, adding some locations to errors with generic templates * Test for template instance location
- Loading branch information
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
compiler/damlc/tests/daml-test-files/TemplateInstanceLoc.daml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- Copyright (c) 2019 The DAML Authors. All rights reserved. | ||
-- SPDX-License-Identifier: Apache-2.0 | ||
-- | ||
-- @ERROR range=16:26-16:30; Not in scope: type constructor or class ‘Foo2Instance’ Perhaps you meant ‘FooInstance’ (line 10) | ||
daml 1.2 | ||
module TemplateInstanceLoc where | ||
|
||
data D = D {} | ||
|
||
template Foo a | ||
with | ||
p : Party | ||
where | ||
signatory p | ||
|
||
template instance FooD = Foo2 D |