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

Key: BOO-915
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Marcus Griep
Reporter: Marcus Griep
Votes: 0
Watchers: 0
Operations

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

Boo Compiler is not flagging virtual constructors as invalid before attempting emit.

Created: 12/Nov/07 02:59 PM   Updated: 17/Nov/07 08:12 AM
Component/s: Compiler
Affects Version/s: 0.8
Fix Version/s: 0.8.1

Time Tracking:
Not Specified

Testcase included: yes


 Description  « Hide
Surround throwing call within a try-catch block and throw a compiler error instead of the internal compiler exception. This will allow the developer to know where the erroneous call is. Also, verify in an earlier step that constructors are not virtual.
"""
test.boo(2, 2): BOOXXXX: Virtual constructors are not allowed. (Test.constructor())
"""
class Test:
	virtual def constructor():
		print "Virtual Constructor!!"

t = Test()
print t


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Marcus Griep - 17/Nov/07 08:12 AM
Revision 2756