why One.A
is not valid?
#3194
-
I am fairly new to TypeSpec, so currently reading the language basics guide. The what I can't 100% understand is, 'Using namespaces' from Namespaces page.
namespace One {
model A {}
}
namespace Two {
using One;
alias B = A; // This is valid
}
alias C = One.A; // This is not valid
alias C = Two.B; // This is valid I think Also, I tested the example above locally, and it compiled without any issue. So, in my think, the proper doc supposed to be alias C = Two.A; // This is not valid
alias C = Two.B; // This is valid Am I right? Did I miss something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
yes you are totally right the doc is incorrect and should be that
|
Beta Was this translation helpful? Give feedback.
yes you are totally right the doc is incorrect and should be that