[scala] implement forward link reference