|
|
@@ -563,7 +563,7 @@ namespace Invercargill {
|
|
|
if(!type.is_instantiatable()) {
|
|
|
throw new PromotionError.INVALID_PROMOTION_TYPE(@"Promotion type $(type.name()) is not instansiatable.");
|
|
|
}
|
|
|
- if(!type.is_a(typeof(PromotionWrapper))) {
|
|
|
+ if(!type.is_a(typeof(Promotion))) {
|
|
|
throw new PromotionError.INVALID_PROMOTION_TYPE(@"Promotion type $(type.name()) does not implement Invercargill.Promotion.");
|
|
|
}
|
|
|
if(!type.is_a(typeof(Enumerable)) && typeof(TPromotion) == type) {
|
|
|
@@ -571,11 +571,11 @@ namespace Invercargill {
|
|
|
}
|
|
|
|
|
|
var promotion = Object.new(type);
|
|
|
- if(!((PromotionWrapper)promotion).call_can_wrap(element_type)) {
|
|
|
+ if(!((Promotion)promotion).call_can_wrap(element_type)) {
|
|
|
throw new PromotionError.INCOMPATIBLE_ELEMENT_TYPE(@"Enumerable has an element type of $(element_type.name()) which cannot be wrapped by $(type.name())");
|
|
|
}
|
|
|
|
|
|
- return ((PromotionWrapper<T, TPromotion>)promotion).call_wrap(this);
|
|
|
+ return ((Promotion<T, TPromotion>)promotion).call_wrap(this);
|
|
|
}
|
|
|
|
|
|
public virtual TPromotion assert_promotion<TPromotion>() {
|