From 12053fa4d55497fc4df06afd67ba3762019969c3 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Mon, 14 Sep 2015 17:07:23 +0200 Subject: Enable more tests that pass --- tests/run/t3346g.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/run/t3346g.scala (limited to 'tests/run/t3346g.scala') diff --git a/tests/run/t3346g.scala b/tests/run/t3346g.scala new file mode 100644 index 000000000..a5b7d6bf8 --- /dev/null +++ b/tests/run/t3346g.scala @@ -0,0 +1,9 @@ +import scala.language.implicitConversions + +case class A(b: Int, c: String) + +object Test extends dotty.runtime.LegacyApp { + implicit def s2i(s: String): Int = s.length + implicit def toA[T](t: T)(implicit f: T => Int): A = A(f(t), t.toString) + println("asdf".copy(b = 3)) +} -- cgit v1.2.3