mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-31 17:17:26 +00:00
Store specialized variable for use in dbg as fake symbol in lowlevel call
This commit is contained in:
parent
fe90355265
commit
a96225e92e
6 changed files with 48 additions and 8 deletions
|
@ -1287,6 +1287,14 @@ fn lowlevel_spec<'a>(
|
|||
|
||||
builder.add_make_tuple(block, &[byte_index, string, is_ok, problem_code])
|
||||
}
|
||||
Dbg => {
|
||||
let arguments = [env.symbols[&arguments[0]]];
|
||||
|
||||
let result_type =
|
||||
layout_spec(env, builder, interner, layout, &WhenRecursive::Unreachable)?;
|
||||
|
||||
builder.add_unknown_with(block, &arguments, result_type)
|
||||
}
|
||||
_other => {
|
||||
// println!("missing {:?}", _other);
|
||||
// TODO overly pessimstic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue