microsoft / microsoft/typespec
Namespace not reduced within if debug statement
Open
emitter:client:csharp
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
When creates a method invoke within a if debug block as
```
new IfElsePreprocessorStatement("DEBUG", Static(Type).Invoke(MethodName, parameter).Terminate(), null)
```
The generated code in MGC doesn't reduce the namespace of Type above.
```
#if DEBUG
global::MgmtTypeSpec.FooResource.ValidateResourceId(id);
#endif
```
Contributor guide
Assessment
This issue has not been assessed yet.