summaryrefslogtreecommitdiff
path: root/test/files/pos/bug115.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/bug115.scala')
-rw-r--r--test/files/pos/bug115.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/bug115.scala b/test/files/pos/bug115.scala
new file mode 100644
index 0000000000..7e83038c7c
--- /dev/null
+++ b/test/files/pos/bug115.scala
@@ -0,0 +1,8 @@
+class S[A](f: A => A, x: A) {
+ System.out.println(f(x));
+}
+class T[A](f: A => A, y: A) extends S(x: A => f(x), y) {
+}
+object Test with Executable {
+ new T[int](x: int => x * 2, 1);
+}