Hi. I have the following scripts in the same folder:
Statements.java
public class Statements {
public static class Equal<T1,T2> {
T1 a;
T2 b;
public Equal(T1 a, T2 b){
this.a = a;
this.b = b;
}
}
}
Axioms.java
import Statements.Equal;
public class Axioms {
public static <T> Equal<T,T> EqRefl(T a) {
return new Equal<T,T>(a,a);
}
public static <T1,T2> Equal<T1,T2> EqComm(Equal<T1,T2> eq) {
return new Equal<T2,T1>(eq.b,eq.a);
}
public static <T1,T2,T3> Equal<T1,T3> EqTrans(Equal<T1,T2> eq1, Equal<T2,T3> eq2) {
if (eq1.b != eq2.a) {
throw new RuntimeException("second operand of first equality must be first operand of second equality");
}
return new Equal<T1,T3>(eq1.a,eq2.b);
}
}
When I try to compile the latter with javac Axioms.java, I get the error Axioms.java:1: error: package Statements does not exist