|
|
|
[
Permlink
| « Hide
]
Avishay Lavie - 06/Jun/08 04:26 PM
Partially implemented as of revision 2996.
I ran against a couple constraint bugs in SVN, but didn't want to report them separately, as constraints aren't quite finished. I have a couple test cases that fail for some odd reason.
This first case fails only if A is defined after Z. It doesn't matter if you use an intermediate class (as shown in the second block). class B(A): pass class Z[of T(A)](): pass class A: pass Z[of B]() class Z[of T(A)](): pass class A: pass Z[of A]() Here's the error: BCE0011: Boo.Lang.Compiler.CompilerError: An error occurred during the execution of the step 'Boo.Lang.Compiler.Steps.Em Secondly, the constructor constraint doesn't appear to work correctly when used. It fails with an odd message:
class A: pass class B[of T(constructor)]: pass x as B[of A] test2.boo(1,7): BCE0015: Boo.Lang.Compiler.CompilerError: Node 'A.constructor' has not been correctly processed. Thanks, I'll certainly look into these.
As mentioned, constraints aren't quite done yet, and these make for very good testcases as to the parts that still don't work. Please keep them coming! |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||