CS153/hw5/hw5programs/tc_arrow_null_rec.oat

18 lines
173 B
Text
Raw Normal View History

struct Point {
int x;
int y
}
Point? f() {
return Point null;
}
Point? g(() -> Point? x) {
return x();
}
Point? h((() -> Point?) -> Point? x) {
return x(f);
}