mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 01:01:59 +03:00
[ fix #1236 ] Already fixed, add test case
This commit is contained in:
parent
a65298e210
commit
1eed6a817d
5
tests/idris2/error/error030/Issue1236.idr
Normal file
5
tests/idris2/error/error030/Issue1236.idr
Normal file
@ -0,0 +1,5 @@
|
||||
private
|
||||
data Foo : Type
|
||||
|
||||
public export
|
||||
data Foo : Type where
|
7
tests/idris2/error/error030/expected
Normal file
7
tests/idris2/error/error030/expected
Normal 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
|
||||
|
3
tests/idris2/error/error030/run
Executable file
3
tests/idris2/error/error030/run
Executable file
@ -0,0 +1,3 @@
|
||||
. ../../../testutils.sh
|
||||
|
||||
check Issue1236.idr
|
Loading…
Reference in New Issue
Block a user