Fix crash when assigning to bool class fields (#95)

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.
This commit is contained in:
Alan Pierce
2018-05-05 14:54:39 -07:00
committed by Daniel Wirtz
parent 8997561670
commit ce2bf00d62
5 changed files with 48 additions and 2 deletions

View File

@ -0,0 +1,9 @@
class A {
boolValue: bool;
}
export function test(): bool {
let a: A;
a.boolValue = true;
return a.boolValue;
}