[Bug]: Shift operations give compile time error for valid case
chiranSachintha opened this issue · comments
Chiran Sachintha commented
Description
$title.
public function main() {
[int, int|int, int...] tupleWithVariableInherentTypes1 = [1, 1, 1];
var x = tupleWithVariableInherentTypes1.shift();
}
For this, we are currently getting the error:
cannot call 'shift' on tuple(s) of type '[int,int,int...]': cannot violate inherent type
Steps to Reproduce
No response
Affected Version(s)
2201.9.0
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response