We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f940d00 commit f543d04Copy full SHA for f543d04
tests/neg/i4433.scala
@@ -1,7 +1,7 @@
1
2
object Foo {
3
inline def g(inline p: Int => Boolean): Boolean = ${ // error
4
- if(p(5)) 'true
5
- else 'false
+ if(p(5)) '{true}
+ else '{false}
6
}
7
tests/neg/quote-splice-interpret-1.scala
@@ -3,7 +3,7 @@ import scala.quoted._
object Macros {
inline def isZero(inline n: Int): Boolean = ${ // error
- if (n == 0) 'true
+ if (n == 0) '{true}
8
9
0 commit comments