Fix example description
No method `A` in the Class `C`. Instead, there is a static field `A`.
This commit is contained in:
parent
a5d2ef13c1
commit
9ef7639b20
|
@ -426,7 +426,7 @@ namespace N2
|
|||
}
|
||||
}
|
||||
```
|
||||
`N1` contains a type member `A`, and `C` contains a static method `A`, and because `N2` imports both, referencing `A` as a *simple_name* is ambiguous and a compile-time error.
|
||||
`N1` contains a type member `A`, and `C` contains a static field `A`, and because `N2` imports both, referencing `A` as a *simple_name* is ambiguous and a compile-time error.
|
||||
|
||||
Like a *using_alias_directive*, a *using_namespace_directive* does not contribute any new members to the underlying declaration space of the compilation unit or namespace, but rather affects only the compilation unit or namespace body in which it appears.
|
||||
|
||||
|
|
Loading…
Reference in a new issue