Skip to content

Commit

Permalink
Merge pull request #151 from nicolasstucki/fix-#148
Browse files Browse the repository at this point in the history
Fix #148: Add regression test
  • Loading branch information
nicolasstucki authored Oct 7, 2020
2 parents e5feeaa + b2b6fc6 commit 9f48641
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/unit/#133.test.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f48641

Please # to comment.