# The depth of the type seen as a tree.
#
# * A -> 1
# * G[A] -> 2
# * H[A, B] -> 2
# * H[G[A], B] -> 3
#
# Formal types have a depth of 1.
# Only `MClassType` and `MFormalType` nodes are counted.
fun depth: Int
do
return 1
end
src/model/model.nit:1224,2--1236,4