aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t3349
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t3349')
-rw-r--r--tests/untried/pos/t3349/AbstractTupleSet.java9
-rw-r--r--tests/untried/pos/t3349/Table.java9
-rw-r--r--tests/untried/pos/t3349/Test.scala5
-rw-r--r--tests/untried/pos/t3349/TupleSet.java4
4 files changed, 27 insertions, 0 deletions
diff --git a/tests/untried/pos/t3349/AbstractTupleSet.java b/tests/untried/pos/t3349/AbstractTupleSet.java
new file mode 100644
index 000000000..38e4743ef
--- /dev/null
+++ b/tests/untried/pos/t3349/AbstractTupleSet.java
@@ -0,0 +1,9 @@
+public abstract class AbstractTupleSet implements TupleSet {
+ public void addColumn(String name, Class type) {
+ throw new UnsupportedOperationException();
+ }
+
+ public void addColumn(String name, String expr) {
+ throw new UnsupportedOperationException();
+ }
+}
diff --git a/tests/untried/pos/t3349/Table.java b/tests/untried/pos/t3349/Table.java
new file mode 100644
index 000000000..160936762
--- /dev/null
+++ b/tests/untried/pos/t3349/Table.java
@@ -0,0 +1,9 @@
+public class Table extends AbstractTupleSet {
+ public void addColumn(String name, Class type) {
+ throw new UnsupportedOperationException();
+ }
+
+ public void addColumn(String name, String expr) {
+ throw new UnsupportedOperationException();
+ }
+} \ No newline at end of file
diff --git a/tests/untried/pos/t3349/Test.scala b/tests/untried/pos/t3349/Test.scala
new file mode 100644
index 000000000..595beadc2
--- /dev/null
+++ b/tests/untried/pos/t3349/Test.scala
@@ -0,0 +1,5 @@
+object Test {
+ val label = "name"
+ val table: Table = sys.error("")
+ table.addColumn( label, label.getClass )
+}
diff --git a/tests/untried/pos/t3349/TupleSet.java b/tests/untried/pos/t3349/TupleSet.java
new file mode 100644
index 000000000..14a073a95
--- /dev/null
+++ b/tests/untried/pos/t3349/TupleSet.java
@@ -0,0 +1,4 @@
+public interface TupleSet {
+ public void addColumn(String name, Class type);
+ public void addColumn(String name, String expr);
+} \ No newline at end of file