diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-01 19:08:41 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-01 19:52:09 -0700 |
commit | ae5ff6628bb74c16d871a2ada0664cdd5d2399a5 (patch) | |
tree | 6819665c0030d5305d55c9b2e4141eea8e8f2458 /test/files/neg/t5578.check | |
parent | 15e05a400be378b012903411179f2a4114f890ef (diff) | |
download | scala-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.check | 4 |
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 |