Constant Default Parameter Support #98

Merged
sb10q merged 7 commits from default_parameter into master 2021-11-23 07:32:09 +08:00
Showing only changes of commit e75ec35687 - Show all commits

View File

@ -354,7 +354,10 @@ impl TopLevelComposer {
if let Ok(v) = v.try_into() {
Ok(SymbolValue::I32(v))
} else {
Ok(SymbolValue::I64(v.try_into().unwrap()))
Err(format!(
"int64 default parameter should be specified explicitly by `int64()` at {}",
loc
))
}
}
Constant::Float(v) => Ok(SymbolValue::Double(*v)),