diff options
Diffstat (limited to 'tests/untried/pos/annotated-treecopy/Test_2.scala')
-rw-r--r-- | tests/untried/pos/annotated-treecopy/Test_2.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/untried/pos/annotated-treecopy/Test_2.scala b/tests/untried/pos/annotated-treecopy/Test_2.scala new file mode 100644 index 000000000..1c6b862ef --- /dev/null +++ b/tests/untried/pos/annotated-treecopy/Test_2.scala @@ -0,0 +1,5 @@ +object Test extends App { + import Macros._ + // tree { (x:((Int,Int,Int),(Int,Int,Int))) => { val y=x; val ((r1,m1,c1),(r2,m2,c2))=y; (r1, m1 + m2 + r1 * c1 * c2, c2) } } + tree { (x:((Int,Int,Int),(Int,Int,Int))) => { val ((r1,m1,c1),(r2,m2,c2))=x; (r1, m1 + m2 + r1 * c1 * c2, c2) } } +} |