mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-27 05:40:00 +03:00
jawesome
This commit is contained in:
parent
6b8c5a55bd
commit
ea88731d58
9 changed files with 289 additions and 79 deletions
10
script.d
10
script.d
|
@ -2024,6 +2024,16 @@ unittest {
|
|||
});
|
||||
}
|
||||
|
||||
unittest {
|
||||
// ternary precedence
|
||||
interpret(q{
|
||||
assert(0 == 0 ? true : false == true);
|
||||
assert((0 == 0) ? true : false == true);
|
||||
// lol FIXME
|
||||
//assert(((0 == 0) ? true : false) == true);
|
||||
});
|
||||
}
|
||||
|
||||
class ForeachExpression : Expression {
|
||||
VariableDeclaration decl;
|
||||
Expression subject;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue