mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 15:32:16 +00:00
With `Type.bool`, size is 1, so dividing by 8 isn't the right way to convert to byteSize. Instead, we need to use the `byteSize` property that does the proper ceiling division.
10 lines
121 B
TypeScript
10 lines
121 B
TypeScript
class A {
|
|
boolValue: bool;
|
|
}
|
|
|
|
export function test(): bool {
|
|
let a: A;
|
|
a.boolValue = true;
|
|
return a.boolValue;
|
|
}
|