Skip to content

Suggestion for type inference for the Model #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 19, 2015
Merged

Suggestion for type inference for the Model #8

merged 4 commits into from
Oct 19, 2015

Conversation

pnerg
Copy link
Contributor

@pnerg pnerg commented Oct 17, 2015

Suggestion for type inference for the Model

This PR is a suggestion to fix automated type inference allowing the user to write code without casting Model instances.
The type of the Model to be returned is inferred by the left side of the expression.

Example provided below

DogModel mockModel = new DogModel("pluto", 5);
DogModel savedModel = mockImpl.fetch(mockModel);

@codecov-io
Copy link

Current coverage is 60.82%

Merging #8 into master will not affect coverage as of 16b7ceb

@@            master      #8   diff @@
======================================
  Files            7       7       
  Stmts           97      97       
  Branches         1       1       
  Methods          0       0       
======================================
  Hit             59      59       
  Partial          0       0       
  Missed          38      38       

Review entire Coverage Diff as of 16b7ceb

Powered by Codecov. Updated on successful CI builds.

jepp3 added a commit that referenced this pull request Oct 19, 2015
Suggestion for type inference for the Model
@jepp3 jepp3 merged commit a9983bb into code-brewery:master Oct 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants