Package org.rascalmpl.interpreter.staticErrors

Examples of org.rascalmpl.interpreter.staticErrors.NonWellformedType


    }

    @Override
    public org.eclipse.imp.pdb.facts.type.Type typeOf(Environment __eval, boolean instantiateTypeParameters, IEvaluator<Result<IValue>> eval) {

      throw new NonWellformedType(
          "tuple should have type arguments, like tuple[value,value].",
          this);

    }
View Full Code Here


      if (__eval.__getTypeArgument().getArity() == 0) {
        return org.rascalmpl.interpreter.BasicTypeEvaluator.__getTf()
            .valueType();
      }
      throw new NonWellformedType(
          "value cannot have type arguments.", this);

    }
View Full Code Here

    public org.eclipse.imp.pdb.facts.type.Type __evaluate(BasicTypeEvaluator __eval) {
      if (__eval.__getTypeArgument().getArity() == 0) {
        return org.rascalmpl.interpreter.BasicTypeEvaluator.__getTf()
            .voidType();
      }
      throw new NonWellformedType(
          "void cannot have type arguments.", this);
    }
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.staticErrors.NonWellformedType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.