dcodeIO 64c939fdc4 Initial implementation of 'new'
This doesn't yet call the constructor or use provided parameters and just allocates raw memory
2018-01-19 16:13:14 +01:00

16 lines
227 B
TypeScript

class Simple {
field: i32;
}
class Generic<T> {
field: T;
}
@global
declare function allocate_memory(size: usize): usize;
export function test(): void {
var simple = new Simple();
var generic = new Generic<f64>();
}