summaryrefslogtreecommitdiff
path: root/test/files/run/macro-blackbox-materialization.check
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-10-02 17:21:55 +0200
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-11-12 18:40:01 -0800
commit6038bac3513a834e67ab4074c2c7b03aac11b1b3 (patch)
tree61a5fb1019fd24e69c8fca420b710f1235b27b50 /test/files/run/macro-blackbox-materialization.check
parenta2b523a39b4e56eb9ab5d9a5639f5b59d425e354 (diff)
downloadscala-6038bac3513a834e67ab4074c2c7b03aac11b1b3.tar.gz
scala-6038bac3513a834e67ab4074c2c7b03aac11b1b3.tar.bz2
scala-6038bac3513a834e67ab4074c2c7b03aac11b1b3.zip
blackbox restriction #2: can't guide type inference
When an application of a blackbox macro still has undetermined type parameters after Scala’s type inference algorithm has finished working, these type parameters are inferred forcedly, in exactly the same manner as type inference happens for normal methods. This makes it impossible for blackbox macros to influence type inference, prohibiting fundep materialization.
Diffstat (limited to 'test/files/run/macro-blackbox-materialization.check')
-rw-r--r--test/files/run/macro-blackbox-materialization.check3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/run/macro-blackbox-materialization.check b/test/files/run/macro-blackbox-materialization.check
new file mode 100644
index 0000000000..7165b734ac
--- /dev/null
+++ b/test/files/run/macro-blackbox-materialization.check
@@ -0,0 +1,3 @@
+C(Int)
+C(String)
+C(Nothing)