mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 15:32:16 +00:00
Also adds a system for writing tests that assert that certain error codes are triggered so that I could test this.
9 lines
259 B
TypeScript
9 lines
259 B
TypeScript
// Expect error: TS2304: Cannot find name 'allocate_memory'.
|
|
// Expect error: AS214: An allocator must be declared to allocate memory. Try importing allocator/arena or allocator/tlsf.
|
|
class A {}
|
|
|
|
export function test(): i32 {
|
|
var a = new A();
|
|
return 3;
|
|
}
|