Fehler beheben
This commit is contained in:
parent
932b277dcc
commit
a7e1a5e2c2
@ -93,8 +93,8 @@ public class TypeInsertFactory {
|
|||||||
}
|
}
|
||||||
if(! inside)newGenerics.add(new GenericInsertPair(additionalTPH, null));
|
if(! inside)newGenerics.add(new GenericInsertPair(additionalTPH, null));
|
||||||
}
|
}
|
||||||
|
if(newGenerics.size() > 0)
|
||||||
ret.add(createGenericInsert(newGenerics, cl, m));
|
ret.add(createGenericInsert(newGenerics, cl, m));
|
||||||
|
|
||||||
//return ret;
|
//return ret;
|
||||||
return new TypeInsert(insertPoint, ret);
|
return new TypeInsert(insertPoint, ret);
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
class mathStruc<A> {
|
class mathStruc<A> {
|
||||||
|
|
||||||
a = new mathStruc<String>();
|
|
||||||
|
|
||||||
mathStruc(A a) { }
|
mathStruc(A a) { }
|
||||||
|
|
||||||
A model(){ A a; return a; }
|
A model(){ A a; return a; }
|
||||||
|
@ -34,7 +34,7 @@ public class JavaTXCompilerTest extends JavaTXCompiler {
|
|||||||
@Test
|
@Test
|
||||||
public void test() throws IOException, java.lang.ClassNotFoundException {
|
public void test() throws IOException, java.lang.ClassNotFoundException {
|
||||||
//filesToTest.add(new File(rootDirectory+"Faculty.jav"));
|
//filesToTest.add(new File(rootDirectory+"Faculty.jav"));
|
||||||
//filesToTest.add(new File(rootDirectory+"mathStruc.jav"));
|
filesToTest.add(new File(rootDirectory+"mathStruc.jav"));
|
||||||
//filesToTest.add(new File(rootDirectory+"Lambda.jav"));
|
//filesToTest.add(new File(rootDirectory+"Lambda.jav"));
|
||||||
//filesToTest.add(new File(rootDirectory+"Lambda2.jav"));
|
//filesToTest.add(new File(rootDirectory+"Lambda2.jav"));
|
||||||
//filesToTest.add(new File(rootDirectory+"Lambda3.jav"));
|
//filesToTest.add(new File(rootDirectory+"Lambda3.jav"));
|
||||||
@ -42,7 +42,7 @@ public class JavaTXCompilerTest extends JavaTXCompiler {
|
|||||||
//filesToTest.add(new File(rootDirectory+"Generics.jav"));
|
//filesToTest.add(new File(rootDirectory+"Generics.jav"));
|
||||||
//filesToTest.add(new File(rootDirectory+"MethodsEasy.jav"));
|
//filesToTest.add(new File(rootDirectory+"MethodsEasy.jav"));
|
||||||
//filesToTest.add(new File(rootDirectory+"Matrix.jav"));
|
//filesToTest.add(new File(rootDirectory+"Matrix.jav"));
|
||||||
filesToTest.add(new File(rootDirectory+"Import.jav"));
|
//filesToTest.add(new File(rootDirectory+"Import.jav"));
|
||||||
for(File f : filesToTest){
|
for(File f : filesToTest){
|
||||||
SourceFile sf = this.parse(f);
|
SourceFile sf = this.parse(f);
|
||||||
System.out.println(ASTTypePrinter.print(this.sourceFiles.get(sourceFiles.size()-1)));
|
System.out.println(ASTTypePrinter.print(this.sourceFiles.get(sourceFiles.size()-1)));
|
||||||
|
Loading…
Reference in New Issue
Block a user