Skip to content

Commit 9f48641

Browse files
Merge pull request #151 from nicolasstucki/fix-#148
Fix #148: Add regression test
2 parents e5feeaa + b2b6fc6 commit 9f48641

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/unit/#133.test.scala

+9
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ val x = inline[T]
7777
// ^^^^^^ storage.modifier.other
7878
// ^ variable.parameter.scala
7979

80+
inline def toIntMacro(inline nat: Nat): Int = ${ Macros.toIntImpl('nat) }
81+
// ^^^^^^ storage.modifier.other
82+
// ^^^^^^ storage.modifier.other
83+
84+
inline def toIntUnapply(inline nat: Nat): Int = inline 1 match
85+
// ^^^^^^ storage.modifier.other
86+
// ^^^^^^ storage.modifier.other
87+
// ^^^^^^ keyword.control.flow.scala
88+
8089
inline if (n == 0) 1 else 2; val x = 2
8190
// ^^^^^^ keyword.control.flow.scala
8291
// ^^ keyword.control.flow.scala

0 commit comments

Comments
 (0)