mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-19 10:37:59 +07:00
class shadowing
This commit is contained in:
+15
@@ -1,3 +1,5 @@
|
||||
import java.io.*;
|
||||
|
||||
public class Main {
|
||||
static interface A
|
||||
{
|
||||
@@ -80,4 +82,17 @@ class BAO {
|
||||
void foo(){}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class WithFileInputStream {
|
||||
private static final Runnable runn = new Runnable() {
|
||||
public void run() {
|
||||
new FileInputStream("path");
|
||||
}
|
||||
};
|
||||
|
||||
private static class FileInputStream {
|
||||
private FileInputStream(String str) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user