Browse Source

262257: testcode

tags/pre268419
aclement 15 years ago
parent
commit
2dca2a4e22
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      tests/bugs164/pr262257/C.java

+ 17
- 0
tests/bugs164/pr262257/C.java View File

@@ -0,0 +1,17 @@
import java.util.*;

interface I {
public <T> List<T> getStuff();
}

class C<D extends Set> implements I {
public <T extends D> List<T> getStuff(){
return new LinkedList<T>();
}
}

aspect X {
public <T> List<T> I.getStuff(){
return new ArrayList<T>();
}
}

Loading…
Cancel
Save