Skip to content

Commit

Permalink
Add a test for #1510
Browse files Browse the repository at this point in the history
  • Loading branch information
yav committed Mar 28, 2023
1 parent cbd87a8 commit 0289fbf
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/issues/Issue1510_F.cry
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module Issue1510_F where

parameter
type n: #

submodule S where
parameter
type m: #

x : Integer
x = 0 ^^ 1 // crashes
// x = 0 ^^ (1 : Integer) // works

7 changes: 7 additions & 0 deletions tests/issues/Issue1510_T.cry
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Issue1510_T where

import Issue1510_F where
type n = 1

import submodule S where
type m = 1
2 changes: 2 additions & 0 deletions tests/issues/issue1510.icry
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:load Issue1510_T.cry
x
6 changes: 6 additions & 0 deletions tests/issues/issue1510.icry.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Loading module Cryptol
Loading module Cryptol
Loading interface module `parameter` interface of Issue1510_F
Loading module Issue1510_F
Loading module Issue1510_T
0

0 comments on commit 0289fbf

Please sign in to comment.