vhdl: fix minor issue in ty2 sample use
Fix lower/upper to left/right bound when creating a new integer type in
response to a type declaration.
@@ -1117,7 +1117,7 @@ impl<'lazy, 'sb, 'ast, 'ctx> ScoreContext<'lazy, 'sb, 'ast, 'ctx> {
Ok(match (lb, rb) {
(&Const::Int(ref lb), &Const::Int(ref rb)) => {
use ty2::{IntegerType, Range};
- let ty = IntegerType::new(Range::with_lower_upper(dir, lb.value.clone(), rb.value.clone()));
+ let ty = IntegerType::new(Range::with_left_right(dir, lb.value.clone(), rb.value.clone()));
debugln!("type from range `{}` = {}", span.extract(), ty);
self.intern_ty(IntTy::new(dir, lb.value.clone(), rb.value.clone()).maybe_null())
}
