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
{{ message }}
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
class Conversion {
float answer;
float Convert ( Unit input, Unit output){
float answer = input.value.__mul__((input.baseValue.__mul__(output.baseValue)));
return answer;
}
}
}
I accidentally used foo=conversion(meters,feet) instead of foo=conversion.Convert(meters,feet) when referencing it. The compiler should catch this and complain.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have the following class defined:
I accidentally used
foo=conversion(meters,feet)
instead offoo=conversion.Convert(meters,feet)
when referencing it. The compiler should catch this and complain.The text was updated successfully, but these errors were encountered: