mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-14 05:46:47 +03:00
15 lines
422 B
Idris
15 lines
422 B
Idris
|
-- Namespaces are currently allowed to be empty, as modules are, but also
|
||
|
-- require their contents to be indented to denote where they end.
|
||
|
-- Whereas a module's end is the end of the file.
|
||
|
|
||
|
-- Since there's no indentation each namespace ends imediately. So each Test
|
||
|
-- defines things at the module level, causing an `already defined` error.
|
||
|
|
||
|
namespace X
|
||
|
private
|
||
|
data Test = A | B
|
||
|
|
||
|
namespace Y
|
||
|
private
|
||
|
data Test = A | B
|