aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorliu fengyun <liu@fengy.me>2017-03-14 09:45:27 +0100
committerliu fengyun <liu@fengy.me>2017-03-14 09:46:25 +0100
commitf4ad5357ffeb4b90777f73e4f1e32cbacbebd33c (patch)
tree0fcb8372af52b2ebf6144889fd7bfe4be3d2cb77 /tests
parent921f8bffc18b19449b2c1ad68c32725a7b7532e2 (diff)
downloaddotty-f4ad5357ffeb4b90777f73e4f1e32cbacbebd33c.tar.gz
dotty-f4ad5357ffeb4b90777f73e4f1e32cbacbebd33c.tar.bz2
dotty-f4ad5357ffeb4b90777f73e4f1e32cbacbebd33c.zip
fix #2051: allow override T with => T or ()T
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/i2051.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pos/i2051.scala b/tests/pos/i2051.scala
new file mode 100644
index 000000000..d0e9fed0d
--- /dev/null
+++ b/tests/pos/i2051.scala
@@ -0,0 +1,2 @@
+class A[T](val x:T)
+class B[T](override val x:T) extends A[T](x)