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
The following example code produces two warnings, not four, when compiled with /warnMissingConstructorParenthesis:
datatype T = A | B
method M(t: T) { // No warnings
match t
case A => print "A";
case B => print "B";
}
method M'(t: T) { // 2 warnings
print match t
case A => "A"
case B => "B";
}
bug.dfy(11,9): Warning: Constructor name 'A' should be followed by parentheses
bug.dfy(12,9): Warning: Constructor name 'B' should be followed by parentheses
Additionally, maybe the flag should be /warnMissingConstructorParentheses?
The text was updated successfully, but these errors were encountered:
The following example code produces two warnings, not four, when compiled with
/warnMissingConstructorParenthesis
:Additionally, maybe the flag should be
/warnMissingConstructorParentheses
?The text was updated successfully, but these errors were encountered: