From 9430354ca2dfb4fc28456e7769e60f312d30551b Mon Sep 17 00:00:00 2001 From: Liu Fengyun Date: Sun, 25 Aug 2019 19:55:53 +0200 Subject: [PATCH] Add run test for infix operator starting at newline The behavior is not covered by the tests in https://github.com/lampepfl/dotty/pull/7031 --- tests/run/i7031.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/run/i7031.scala diff --git a/tests/run/i7031.scala b/tests/run/i7031.scala new file mode 100644 index 000000000000..0756f885d966 --- /dev/null +++ b/tests/run/i7031.scala @@ -0,0 +1,9 @@ +@main def Test = { + val a = 5 + val x = 1 + + // + `a` * 6 + + assert(x == 1) +} +