Examples of AmbiguousFunctionReference


Examples of org.rascalmpl.interpreter.staticErrors.AmbiguousFunctionReference

      Set<Type> constructors = env.lookupConstructor(adt, constructor);

      if (constructors.size() == 0) {
        throw new UndeclaredType(name + "." + constructor, this);
      } else if (constructors.size() > 1) {
        throw new AmbiguousFunctionReference(name + "."
            + constructor, this);
      } else {
        return constructors.iterator().next();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.