Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Compiler should catch missing function name #7

Open
janicedatawire opened this issue Oct 5, 2015 · 0 comments
Open

Compiler should catch missing function name #7

janicedatawire opened this issue Oct 5, 2015 · 0 comments

Comments

@janicedatawire
Copy link
Contributor

I have the following class defined:

    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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant