diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-08-16 11:35:47 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-08-16 11:35:47 -0700 |
commit | 1b9c8d042cdd83dc48d24300c347302bd27def8f (patch) | |
tree | a43788a9cf59ccd3947d906960d81d79e080f807 /test/files/run/t5923d/Macros_1.scala | |
parent | 8b2963869f6a6416eae583d4b6f16cbcaf0ca5ac (diff) | |
parent | 21a8c6c7558a67b642b6827f716b1aba2244c97f (diff) | |
download | scala-1b9c8d042cdd83dc48d24300c347302bd27def8f.tar.gz scala-1b9c8d042cdd83dc48d24300c347302bd27def8f.tar.bz2 scala-1b9c8d042cdd83dc48d24300c347302bd27def8f.zip |
Merge pull request #2821 from xeno-by/topic/fundep-materialization
SI-7470 implements fundep materialization
Diffstat (limited to 'test/files/run/t5923d/Macros_1.scala')
-rw-r--r-- | test/files/run/t5923d/Macros_1.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t5923d/Macros_1.scala b/test/files/run/t5923d/Macros_1.scala new file mode 100644 index 0000000000..f32d1af704 --- /dev/null +++ b/test/files/run/t5923d/Macros_1.scala @@ -0,0 +1,9 @@ +import scala.language.experimental.macros +import scala.reflect.macros.Context + +trait MappedRow +trait RowMapper[T <: MappedRow] +object RowMapper { + implicit def mapper[T <: MappedRow]: RowMapper[T] = macro impl[T] + def impl[T <: MappedRow : c.WeakTypeTag](c: Context) = c.universe.reify(new RowMapper[T]{}) +}
\ No newline at end of file |