aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t3622
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t3622')
-rw-r--r--tests/untried/pos/t3622/AsyncTask.java5
-rw-r--r--tests/untried/pos/t3622/MyAsyncTask.java9
-rw-r--r--tests/untried/pos/t3622/Test.scala5
3 files changed, 19 insertions, 0 deletions
diff --git a/tests/untried/pos/t3622/AsyncTask.java b/tests/untried/pos/t3622/AsyncTask.java
new file mode 100644
index 000000000..cfcea3fe1
--- /dev/null
+++ b/tests/untried/pos/t3622/AsyncTask.java
@@ -0,0 +1,5 @@
+package test;
+
+public abstract class AsyncTask<Params, Progress, Result> {
+ protected abstract Result doInBackground(Params... args);
+} \ No newline at end of file
diff --git a/tests/untried/pos/t3622/MyAsyncTask.java b/tests/untried/pos/t3622/MyAsyncTask.java
new file mode 100644
index 000000000..9ef494705
--- /dev/null
+++ b/tests/untried/pos/t3622/MyAsyncTask.java
@@ -0,0 +1,9 @@
+package test;
+
+public abstract class MyAsyncTask extends AsyncTask<String, String, String> {
+ protected abstract String doInBackground1(String[] args);
+ @Override
+ protected String doInBackground(String... args) {
+ return doInBackground1(new String[]{"dummy"});
+ }
+} \ No newline at end of file
diff --git a/tests/untried/pos/t3622/Test.scala b/tests/untried/pos/t3622/Test.scala
new file mode 100644
index 000000000..d18953bba
--- /dev/null
+++ b/tests/untried/pos/t3622/Test.scala
@@ -0,0 +1,5 @@
+package test
+
+class Test extends MyAsyncTask {
+ protected[test] def doInBackground1(args: Array[String]): String = ""
+}