From 4f937e1735574ffda679761a0a9a8bebbe9cb2ae Mon Sep 17 00:00:00 2001 From: Abel Nieto Date: Fri, 31 Mar 2017 09:14:27 -0400 Subject: Fix #1959: infix type operators in the REPL Infix type operators were broken in the REPL. The REPL uses fold methods from the untpd package, but those were skipping the operator subtree when folding over an InfixOp. Fix the issue by taking the operator into account. Tested: 1) Verified that only the REPL code uses the modified fold method. 2) Added repl test. --- tests/repl/infixTypeOp.check | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/repl/infixTypeOp.check (limited to 'tests') diff --git a/tests/repl/infixTypeOp.check b/tests/repl/infixTypeOp.check new file mode 100644 index 000000000..fe8e453fb --- /dev/null +++ b/tests/repl/infixTypeOp.check @@ -0,0 +1,5 @@ +scala> trait +[A, B] +defined trait + +scala> type IntAndString = Int + String +defined type alias IntAndString +scala> :quit -- cgit v1.2.3