summaryrefslogtreecommitdiffstats
path: root/tests/errors/MethodsNotFound.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/MethodsNotFound.java')
-rw-r--r--tests/errors/MethodsNotFound.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/errors/MethodsNotFound.java b/tests/errors/MethodsNotFound.java
new file mode 100644
index 000000000..2a7547814
--- /dev/null
+++ b/tests/errors/MethodsNotFound.java
@@ -0,0 +1,18 @@
+
+public class MethodsNotFound {
+ public void foo() {
+ "a".bar();
+ }
+
+ public void foo(int x) {
+ new Ha().foo();
+ }
+
+ public void bar() {
+ new MethodsNotFound().foo("hi");
+ }
+}
+
+class Ha {
+ private void foo() {}
+}