diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-02-23 10:01:24 -0600 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-02-23 10:01:24 -0600 |
commit | efa99c01974febe227937f090afbb93b9a6a59a5 (patch) | |
tree | a5656dda5c063d10c9d72f614a39ceb8a7828b1c /test/files/neg/macro-bundle-whitebox-use-raw/Test_2.scala | |
parent | 6a9767b95216badc5cc8080f430d6a517fbdac4a (diff) | |
parent | dded01b234542501fa62821376a4d853e24250d4 (diff) | |
download | scala-efa99c01974febe227937f090afbb93b9a6a59a5.tar.gz scala-efa99c01974febe227937f090afbb93b9a6a59a5.tar.bz2 scala-efa99c01974febe227937f090afbb93b9a6a59a5.zip |
Merge pull request #3571 from xeno-by/ticket/8321
SI-8321 bundles can't be whitebox
Diffstat (limited to 'test/files/neg/macro-bundle-whitebox-use-raw/Test_2.scala')
-rw-r--r-- | test/files/neg/macro-bundle-whitebox-use-raw/Test_2.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/neg/macro-bundle-whitebox-use-raw/Test_2.scala b/test/files/neg/macro-bundle-whitebox-use-raw/Test_2.scala new file mode 100644 index 0000000000..3a81700251 --- /dev/null +++ b/test/files/neg/macro-bundle-whitebox-use-raw/Test_2.scala @@ -0,0 +1,19 @@ +object Test extends App { + println(ReturnTypeRefinement.foo.x) + + case class Foo(i: Int, s: String, b: Boolean) + def foo[C, L](c: C)(implicit iso: FundepMaterialization[C, L]): L = iso.to(c) + locally { + val equiv = foo(Foo(23, "foo", true)) + def typed[T](t: => T) {} + typed[(Int, String, Boolean)](equiv) + println(equiv) + } + + println(implicitly[DynamicMaterialization[C1]]) + println(implicitly[DynamicMaterialization[C2]]) + + 42 match { + case ExtractorMacro(x) => println(x) + } +} |