Skip to content

References

References are used to refer to a declaration, such as a class or a placeholder. The syntax is simply the name of the declaration, as shown in the next snippet where we first declare a placeholder called one and then refer to it when computing the value for the placeholder called two:

val one = 1;
val two = one + one;

In order to refer to global declarations in other packages, we first need to import them.