ForNeVeR / ForNeVeR/Cesium

Is `_Bool` a primitive type?

Open
#179 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.