Logo
Explore Help
Sign In
fluencelabs/assemblyscript
1
0
Fork 0
You've already forked assemblyscript
mirror of https://github.com/fluencelabs/assemblyscript synced 2025-05-08 13:22:16 +00:00
Code Issues Projects Releases Wiki Activity
assemblyscript/tests/compiler/class-with-boolean-field.ts

10 lines
121 B
TypeScript
Raw Normal View History

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.
2018-05-05 14:54:39 -07:00
class A {
boolValue: bool;
}
export function test(): bool {
let a: A;
a.boolValue = true;
return a.boolValue;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 364ms Template: 12ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API