Matrix Test
This commit is contained in:
parent
ede55d228e
commit
c7dea4c86b
@ -26,7 +26,6 @@ public class UnifyTypeFactory {
|
|||||||
|
|
||||||
public static FiniteClosure generateFC(List<ClassOrInterface> fromClasses) throws ClassNotFoundException {
|
public static FiniteClosure generateFC(List<ClassOrInterface> fromClasses) throws ClassNotFoundException {
|
||||||
/*
|
/*
|
||||||
TODO: Generics werden zu TPHs
|
|
||||||
Die transitive Hülle muss funktionieren.
|
Die transitive Hülle muss funktionieren.
|
||||||
Man darf schreiben List<A> extends AL<A>
|
Man darf schreiben List<A> extends AL<A>
|
||||||
und Vector<B> extends List<B>
|
und Vector<B> extends List<B>
|
||||||
|
@ -96,4 +96,14 @@ public abstract class UnifyType {
|
|||||||
ret.addAll(typeParams.getInvolvedPlaceholderTypes());
|
ret.addAll(typeParams.getInvolvedPlaceholderTypes());
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return this.toString().hashCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
return this.toString().equals(obj.toString());
|
||||||
|
}
|
||||||
}
|
}
|
9
test/typeinference/MatrixTest.java
Normal file
9
test/typeinference/MatrixTest.java
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
package typeinference;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
public class MatrixTest extends JavaTXCompilerTest{
|
||||||
|
public MatrixTest() {
|
||||||
|
this.fileToTest = new File(rootDirectory+"Matrix.jav");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user