You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class X {
private def f1(a : int = 0) : void {
}
def f2 {
f1
}
}
The previous code causes a warning "f1 is never used".
It is not true because f1 is called without argument, i.e. the default valued parameter is not considered when checking the calls to the functions.
The text was updated successfully, but these errors were encountered:
gallandarakhneorg
changed the title
Invalid "function not used" warning.
Invalid "function not used" warning for functions with default valued parameter.
Dec 17, 2018
Let the SARL code:
The previous code causes a warning "f1 is never used".
It is not true because
f1
is called without argument, i.e. the default valued parameter is not considered when checking the calls to the functions.The text was updated successfully, but these errors were encountered: