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

Key: BOO-719
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Dominik Zablotny
Votes: 0
Watchers: 1
Operations

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

property override depends on compilation order

Created: 09/Apr/06 05:33 PM   Updated: 10/Apr/06 09:58 AM
Component/s: Compiler
Affects Version/s: 0.7
Fix Version/s: 0.7.6

Time Tracking:
Not Specified

Environment: linux ubuntu dapper


 Description  « Hide
The folowing code won't compile until you put Foo definition before Baz
Error message I get:
3.boo(2,10): BCE0072: Overriden method 'Foo.get_X' has a return type of 'unknown' not 'System.String'.

class Bar(Foo):
X as string:
get:
return "bar"

class Foo:
X as string:
get:
return "foo"

print Bar().X



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dominik Zablotny - 09/Apr/06 06:09 PM
Also affects Boo Compiler version 0.7.6.2206 (CLR v1.1.4322.2032)

Dominik Zablotny - 09/Apr/06 07:18 PM
Better testcase with virtual and override that I forgot to add:

class Bar(Foo):
override X as string:
get:
return "4"

class Foo:
virtual X as string:
get:
return "foo"

print Bar().X


Rodrigo B. de Oliveira - 10/Apr/06 09:58 AM
Thanks for the report!