History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-827
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Rodrigo B. de Oliveira
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

InvalidCastException when calling overloaded function with duck argument

Created: 17/May/07 10:20 AM   Updated: 17/May/07 11:09 PM
Component/s: Compiler
Affects Version/s: 0.7.7
Fix Version/s: 0.7.8

Time Tracking:
Not Specified


 Description  « Hide
"""
string Hello
stuff A
play Hello A
"""
enum Stuff:
A
B
C

def play(stuff as Stuff):
print "stuff", stuff

def play(s as string):
print "string", s

def play(s as string, stuff as Stuff):
print "play", s, stuff

a as duck = "Hello"
play(a)

b as duck = Stuff.A
play(b)

play(a, b)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.