Naive question about unknown-var test case #75
-
In unknown-var.aya:
Checking it outputs as expected below:
Question is, after I remove
In module-basic.aya, it seems ::zero works. So why not in unknown-var.aya? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Did you mean
Because they did |
Beta Was this translation helpful? Give feedback.
Did you mean
data Nat
?Because they did
open data Nat
instead ofdata Nat
. The keywordopen
bringsNat::*
into the current scope. You can think of it asusing namespace
in C++.