public int declare(Nominal type, String name, List<Attribute> attributes) {
List<SyntaxTree.Location<?>> locations = enclosing.getLocations();
int index = locations.size();
environment.put(name, index);
Bytecode.VariableDeclaration decl = new Bytecode.VariableDeclaration(name);
<BUG>Type locationType = normalise(type);
locations.add(new SyntaxTree.Location<Bytecode>(enclosing, locationType, decl, attributes));</BUG>
return index;
}
public int createAlias(Nominal type, String name, List<Attribute> attributes) {

public int declare(Nominal type, String name, List<Attribute> attributes) {
List<SyntaxTree.Location<?>> locations = enclosing.getLocations();
int index = locations.size();
environment.put(name, index);
Bytecode.VariableDeclaration decl = new Bytecode.VariableDeclaration(name);
Type locationType = type.nominal();
locations.add(new SyntaxTree.Location<Bytecode>(enclosing, locationType, decl, attributes));
return index;
}
public int createAlias(Nominal type, String name, List<Attribute> attributes) {
