aboutsummaryrefslogtreecommitdiff
path: root/test/swftests/PrivateCall.as
diff options
context:
space:
mode:
Diffstat (limited to 'test/swftests/PrivateCall.as')
-rw-r--r--test/swftests/PrivateCall.as21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/swftests/PrivateCall.as b/test/swftests/PrivateCall.as
new file mode 100644
index 000000000..f1c110a37
--- /dev/null
+++ b/test/swftests/PrivateCall.as
@@ -0,0 +1,21 @@
+// input: []
+// output: 9
+
+package {
+public class PrivateCall {
+ public static function main():int{
+ var f:OtherClass = new OtherClass();
+ return f.func();
+ }
+}
+}
+
+class OtherClass {
+ private function pf():int {
+ return 9;
+ }
+
+ public function func():int {
+ return this.pf();
+ }
+}