if(constant instanceof Boolean){
returnType = new WeaselGenericClass(compiler.baseTypes.booleanClass);
instructionList.add(line, new WeaselInstructionLoadConstBoolean((Boolean)constant));
}else if(constant instanceof Character){
returnType = new WeaselGenericClass(compiler.baseTypes.charClass);
instructionList.add(line, new WeaselInstructionLoadConstChar((Character)constant));
}else if(constant instanceof Byte){
returnType = new WeaselGenericClass(compiler.baseTypes.byteClass);
instructionList.add(line, new WeaselInstructionLoadConstByte((Byte)constant));
}else if(constant instanceof Short){
returnType = new WeaselGenericClass(compiler.baseTypes.shortClass);