Skip to content
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

Reverse type inference regression in 1.14.x #126

Closed
DPUkyle opened this issue Feb 26, 2018 · 1 comment
Closed

Reverse type inference regression in 1.14.x #126

DPUkyle opened this issue Feb 26, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@DPUkyle
Copy link
Contributor

DPUkyle commented Feb 26, 2018

The below example passed in 1.13.x, fails in 1.14.x:

function hello<T>(t : T) : T{ return null }
  
function foo1() {
    var bar: ArrayList<Integer> = hello(new ArrayList( ))  // Reverse type inference: new ArrayList() ==> new ArrayList<Integer>() from context for the type param T
  }

See FIXME tags in gosu-test/src/test/gosu/gw/specContrib/typeinference/GenericResultToParameter.gs and gosu-test/src/test/gosu/gw/specContrib/typeinference/Errant_DiamondInference.gs

This maps to Guidewire IDE-4166

@DPUkyle DPUkyle added the bug label Feb 26, 2018
@DPUkyle DPUkyle added this to the v1.14.8 milestone Feb 26, 2018
DPUkyle added a commit that referenced this issue Feb 26, 2018
@rsmckinney
Copy link
Member

That particular inference is no longer supported

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

No branches or pull requests

2 participants