diff options
author | liu fengyun <liu@fengy.me> | 2017-03-14 09:45:27 +0100 |
---|---|---|
committer | liu fengyun <liu@fengy.me> | 2017-03-14 09:46:25 +0100 |
commit | f4ad5357ffeb4b90777f73e4f1e32cbacbebd33c (patch) | |
tree | 0fcb8372af52b2ebf6144889fd7bfe4be3d2cb77 /tests/pos | |
parent | 921f8bffc18b19449b2c1ad68c32725a7b7532e2 (diff) | |
download | dotty-f4ad5357ffeb4b90777f73e4f1e32cbacbebd33c.tar.gz dotty-f4ad5357ffeb4b90777f73e4f1e32cbacbebd33c.tar.bz2 dotty-f4ad5357ffeb4b90777f73e4f1e32cbacbebd33c.zip |
fix #2051: allow override T with => T or ()T
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i2051.scala | 2 |
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) |