Is `_Bool` a primitive type?
Open
area:compiler
area:standard-support
good-first-issue
hacktoberfest
status:help-wanted
- Dominant language
- C#
- Stars
- 451
- Forks
- 49
- Avg merge
- 13h 59m
- Merged PRs (30d)
- 6
Description
Right now, we have a following line in `CTypeSystem.cs`:
```csharp
public IType Bool { get; } = new PrimitiveType(PrimitiveTypeKind.Int);
```
I'm not sure about that. In CLI, `Bool`'s size is one byte, not four.
We'll have to check the standard to see whether `_Bool` is a primitive type we may use instead of `PrimitiveTypeKind.Int` here.
See `// TODO[#179]` in the code to fix this issue.
Contributor guide
Assessment
This issue has not been assessed yet.