blob: 954e776bcde1ca96b2eb39e852c8ce9be6902343 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
namespace;
include rt;
// expect: type error: argument: expected point*, got int*
typecheck on;
struct point { int x, y; };
int f(point* p) { return p.x; }
fn main() { int* q = rt.new(int); f(q); rt.free(d*q); return 0; }
|