diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/pending/run/t4283/AbstractFoo.java | 5 | ||||
-rw-r--r-- | test/pending/run/t4283/IllegalAccess.scala | 5 | ||||
-rw-r--r-- | test/pending/run/t4283/ScalaBipp.scala | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/test/pending/run/t4283/AbstractFoo.java b/test/pending/run/t4283/AbstractFoo.java new file mode 100644 index 0000000000..6d4e8f4e22 --- /dev/null +++ b/test/pending/run/t4283/AbstractFoo.java @@ -0,0 +1,5 @@ +package test; + +/* package private */ class AbstractFoo { + public int t; +}
\ No newline at end of file diff --git a/test/pending/run/t4283/IllegalAccess.scala b/test/pending/run/t4283/IllegalAccess.scala new file mode 100644 index 0000000000..e1bce15cf8 --- /dev/null +++ b/test/pending/run/t4283/IllegalAccess.scala @@ -0,0 +1,5 @@ +package other + +object IllegalAccess { + val x = (new test.ScalaBipp).make.get.t // java.lang.IllegalAccessError: tried to access class test.AbstractFoo from class other.IllegalAccess$ +} diff --git a/test/pending/run/t4283/ScalaBipp.scala b/test/pending/run/t4283/ScalaBipp.scala new file mode 100644 index 0000000000..36dea9f4de --- /dev/null +++ b/test/pending/run/t4283/ScalaBipp.scala @@ -0,0 +1,5 @@ +package test + +class ScalaBipp extends AbstractFoo { + def make: Option[ScalaBipp] = Option(this) +} |