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
Description
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