Ticket #323 (closed defect: fixed)
Internal error for dynamic argument
Reported by: | Charles | Owned by: | Chuck |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Cobra Compiler | Version: | 0.9.4 |
Keywords: | Cc: |
Description
The program below works in Cobra 0.9.3, but not 0.9.4:
class X def foo(c as char) pass def foo(s as String) pass def foo(obj as Object) pass def main x = 'aoeu' to dynamic .foo(x)
changeset:2966 from ticket:189 caused the change
Commenting out this code in Expr.cobra (around line 752) will allow the above program to compile and run without error:
/#
if winner inherits BoxMember # .no-warnings.
# to-do: 2012-07-01 CE: the following just isn't ready
if winner.name not in ['format', 'invoke', 'split', 'sort'] # to-do: hack
params = winner.params
if _checkParamsCount(winner, args, params)
if needInferOutArgs, _inferOutArgs(args, params, false)
_checkArgsAssignable(winner, args, params)
#/
Attachments
Change History
Note: See
TracTickets for help on using
tickets.