diff options
Diffstat (limited to 'test/pos/bug115.scala')
-rw-r--r-- | test/pos/bug115.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pos/bug115.scala b/test/pos/bug115.scala new file mode 100644 index 0000000000..7e83038c7c --- /dev/null +++ b/test/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); +} |