summaryrefslogtreecommitdiff
path: root/test/files/neg/t5578.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-01 19:08:41 -0700
committerPaul Phillips <paulp@improving.org>2012-05-01 19:52:09 -0700
commitae5ff6628bb74c16d871a2ada0664cdd5d2399a5 (patch)
tree6819665c0030d5305d55c9b2e4141eea8e8f2458 /test/files/neg/t5578.check
parent15e05a400be378b012903411179f2a4114f890ef (diff)
downloadscala-ae5ff6628bb74c16d871a2ada0664cdd5d2399a5.tar.gz
scala-ae5ff6628bb74c16d871a2ada0664cdd5d2399a5.tar.bz2
scala-ae5ff6628bb74c16d871a2ada0664cdd5d2399a5.zip
Fixes #SI-5578.
ResetAttrs shouldn't be side-effecting on the original tree, since it can lead to NPEs in erroneous trees (or maybe even for valid ones?). Review by @odersky (Patch by plocinic, applied without his complicity by extempore)
Diffstat (limited to 'test/files/neg/t5578.check')
-rw-r--r--test/files/neg/t5578.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t5578.check b/test/files/neg/t5578.check
new file mode 100644
index 0000000000..d803adb223
--- /dev/null
+++ b/test/files/neg/t5578.check
@@ -0,0 +1,4 @@
+t5578.scala:33: error: No Manifest available for T.
+ def plus[T: Numeric](x: Rep[T], y: Rep[T]): Rep[T] = Plus[T](x,y)
+ ^
+one error found