mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Polymorphic expression specialization works in gen tests
This commit is contained in:
parent
f21ce43e30
commit
261df36c50
7 changed files with 363 additions and 206 deletions
|
@ -34,7 +34,8 @@ macro_rules! dbg_do {
|
|||
($flag:path, $expr:expr) => {
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
if std::env::var($flag).as_ref() == Ok(&"0".to_string()) {
|
||||
let flag = std::env::var($flag);
|
||||
if !flag.is_err() && flag.as_deref() != Ok("0") {
|
||||
$expr
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue