[ fix #1236 ] Already fixed, add test case

This commit is contained in:
Guillaume Allais 2024-07-25 09:49:54 +01:00 committed by G. Allais
parent a65298e210
commit 1eed6a817d
3 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,5 @@
private
data Foo : Type
public export
data Foo : Type where

View File

@ -0,0 +1,7 @@
1/1: Building Issue1236 (Issue1236.idr)
Warning: Main.Foo has been forward-declared with private visibility, cannot change to public export. This will be an error in a later release.
Issue1236:4:1--5:22
4 | public export
5 | data Foo : Type where

View File

@ -0,0 +1,3 @@
. ../../../testutils.sh
check Issue1236.idr