Skip to content

Naive question about unknown-var test case #75

Closed Answered by ice1000
nobodxbodon asked this question in Q&A
Discussion options

You must be logged in to vote

Did you mean data Nat?

In module-basic.aya, it seems ::zero works.

Because they did open data Nat instead of data Nat. The keyword open brings Nat::* into the current scope. You can think of it as using namespace in C++.

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@ice1000
Comment options

@nobodxbodon
Comment options

@nobodxbodon
Comment options

@ice1000
Comment options

@ice1000
Comment options

Answer selected by ice1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants