Created
May 23, 2019 21:32
-
-
Save jtenner/0b4b81a5b0f48958dbc69414b32f0610 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Vec3 { | |
x: f64; | |
y: f64; | |
z: f64; | |
} | |
const refPointer: usize = __alloc(5000); | |
const a = new Vec3(); | |
const b = changetype<Vec3>(refPointer); | |
expect<Vec3>(a).toStrictEqual(b, "The allocated sizes of a and b are different"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment