From b2b6fc60c270199dec704fe67041e26527efaf20 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Wed, 7 Oct 2020 16:43:51 +0200 Subject: [PATCH] Fix #148: Add regression test --- tests/unit/#133.test.scala | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/unit/#133.test.scala b/tests/unit/#133.test.scala index e2b6516..77fa4bc 100644 --- a/tests/unit/#133.test.scala +++ b/tests/unit/#133.test.scala @@ -77,6 +77,15 @@ val x = inline[T] // ^^^^^^ storage.modifier.other // ^ variable.parameter.scala + inline def toIntMacro(inline nat: Nat): Int = ${ Macros.toIntImpl('nat) } +// ^^^^^^ storage.modifier.other +// ^^^^^^ storage.modifier.other + + inline def toIntUnapply(inline nat: Nat): Int = inline 1 match +// ^^^^^^ storage.modifier.other +// ^^^^^^ storage.modifier.other +// ^^^^^^ keyword.control.flow.scala + inline if (n == 0) 1 else 2; val x = 2 // ^^^^^^ keyword.control.flow.scala // ^^ keyword.control.flow.scala