diff options
author | Martin Odersky <odersky@gmail.com> | 2015-03-13 17:34:50 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-03-13 17:34:58 +0100 |
commit | 591e1518d7928fdd88ea7593b19e73182a8619a6 (patch) | |
tree | 7b98c3884a0960348fbab8a71855d8a4ac5e5326 /tests/pos/t2667.scala | |
parent | 0ee93122b9e367c08ed1d81c9cfc5919fc3a32af (diff) | |
download | dotty-591e1518d7928fdd88ea7593b19e73182a8619a6.tar.gz dotty-591e1518d7928fdd88ea7593b19e73182a8619a6.tar.bz2 dotty-591e1518d7928fdd88ea7593b19e73182a8619a6.zip |
New test for valueclasses
Re-instantiated t2667.scala, which failed before because of issue #390.
Also changed order of tests in isDerivedValueClass, to make more disriminating test come first.
Diffstat (limited to 'tests/pos/t2667.scala')
-rw-r--r-- | tests/pos/t2667.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/t2667.scala b/tests/pos/t2667.scala new file mode 100644 index 000000000..600c1eaf0 --- /dev/null +++ b/tests/pos/t2667.scala @@ -0,0 +1,7 @@ +// ExtensionMethods info transformer fails here for AnyVal$ +object A { + def foo(x: Int, y: Int*): Int = 45 + def foo[T](x: T*): Int = 55 + + val x: Unit = foo(23, 23f) +} |