At line 184 removed one line |
!! 12: Type inference is failing on nested constructors. |
At line 186 removed 3 lines |
| __Reporter:__ | David Kitchin |
| __Report date-time:__ | 2011-02-28 18:28 |
| __Orc version:__ | OrcScala r2459 |
At line 190 removed 27 lines |
! Code: |
[{orc runnable='false' |
|
[[],[]] :: List[List[Top]] |
|
}] |
|
! Actual output: |
{{{ |
A type argument is overconstrained; inference failed. Please add explicit type arguments. There may also be an underlying type error. [[OrcWiki:OverconstrainedTypeVariableException]] |
[[],[]] :: List[List[Top]] |
^ |
}}} |
|
! Reporter's comments: |
Constraint generation seems to behave strangely in the presence of nested constructors. The underlying constraint {{{List[Bot] <: List[List[Top]]}}} should succeed trivially, but instead it fails. This is the simplest example I have found which demonstrates the problem. In fact, the expression should have the even more precise type {{{List[List[Bot]]}}}, but I've currently left it as {{{Top}}} for simplicity. |
|
! Orc team response |
|| Analysis |
| __Repeatable:__ | Yes |
| __Root Cause:__ | |
| __Proposed Fix:__ | |
|| Implementation |
| __Fix Made:__ | __Rev:__ __Date:__ __By:__ |
|
---- |
|
At line 221 added 33 lines |
!! %%strike 12: Type inference is failing on nested constructors. %% (fixed) |
|
| __Reporter:__ | David Kitchin |
| __Report date-time:__ | 2011-02-28 18:28 |
| __Orc version:__ | OrcScala r2459 |
|
! Code: |
[{orc runnable='false' |
|
[[],[]] :: List[List[Top]] |
|
}] |
|
! Actual output: |
{{{ |
A type argument is overconstrained; inference failed. Please add explicit type arguments. There may also be an underlying type error. [[OrcWiki:OverconstrainedTypeVariableException]] |
[[],[]] :: List[List[Top]] |
^ |
}}} |
|
! Reporter's comments: |
Constraint generation seems to behave strangely in the presence of nested constructors. The underlying constraint {{{List[Bot] <: List[List[Top]]}}} should succeed trivially, but instead it fails. This is the simplest example I have found which demonstrates the problem. In fact, the expression should have the even more precise type {{{List[List[Bot]]}}}, but I've currently left it as {{{Top}}} for simplicity. |
|
! Orc team response |
|| Analysis |
| __Repeatable:__ | Yes |
| __Root Cause:__ | |
| __Proposed Fix:__ | |
|| Implementation |
| __Fix Made:__ | __Rev:__ 2634 __Date:__ 28 Mar 2011 __By:__ dkitchin |
|
---- |
|