|
@@ -214,8 +214,6 @@ export class SemanticAnalyser {
|
|
literal.value.reduce((last, next) => {
|
|
literal.value.reduce((last, next) => {
|
|
const eType = this.evaluateExpressionType(next);
|
|
const eType = this.evaluateExpressionType(next);
|
|
if (!last.canAccept(eType)) {
|
|
if (!last.canAccept(eType)) {
|
|
- console.log(last);
|
|
|
|
- console.log(eType);
|
|
|
|
throw new Error("invalid value type for array");
|
|
throw new Error("invalid value type for array");
|
|
}
|
|
}
|
|
return last;
|
|
return last;
|