|
@@ -0,0 +1,20 @@
|
|
|
+package cases;
|
|
|
+
|
|
|
+class Issue6434 extends DisplayTestCase {
|
|
|
+ /**
|
|
|
+ import misc.ModuleWithPrivateType;
|
|
|
+
|
|
|
+ class Main {
|
|
|
+ static function main() {
|
|
|
+ {-1-}
|
|
|
+ }
|
|
|
+ }
|
|
|
+ **/
|
|
|
+ function test() {
|
|
|
+ var toplevel = toplevel(pos(1));
|
|
|
+ eq(true, Toplevel.hasToplevel(toplevel, "type", "PublicClass"));
|
|
|
+ // This doesn't really test what I want to test, but I don't know how
|
|
|
+ // to test what I want to test...
|
|
|
+ eq(false, Toplevel.hasToplevel(toplevel, "type", "PrivateClass"));
|
|
|
+ }
|
|
|
+}
|