Files
fz-lang/tests/programs/pos_method_call_via_field.fzs

20 lines
199 B
Plaintext

class Node
{
Node next;
fn ping()
{
printline("ping");
}
fn pingNext()
{
this.next.ping();
}
}
Node head = new Node;
Node tail = new Node;
head.next = tail;
head.pingNext();