Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

test case that verifies SI-8352 #3589

Merged
merged 1 commit into from

2 participants

@xeno-by
Owner

review @re^W @adriaanm

@xeno-by xeno-by added this to the 2.11.0-RC1 milestone
@adriaanm adriaanm was assigned by xeno-by
@xeno-by xeno-by added the tested label
@adriaanm adriaanm merged commit fabc9f1 into scala:master
@adriaanm
Owner

LGTM, hope my review will do :)

@xeno-by xeno-by deleted the xeno-by:topic/whitebox-typecheck-expecting-unit branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 27, 2014
  1. @xeno-by
This page is out of date. Refresh to see the latest.
View
0  test/files/pos/t8352.check
No changes.
View
7 test/files/pos/t8352/Macros_1.scala
@@ -0,0 +1,7 @@
+import scala.reflect.macros.whitebox._
+import scala.language.experimental.macros
+
+object Macros {
+ def impl(c: Context)(x: c.Expr[Boolean]): c.Expr[Boolean] = x
+ def foo(x: Boolean): Boolean = macro impl
+}
View
5 test/files/pos/t8352/Test_2.scala
@@ -0,0 +1,5 @@
+object Test extends App {
+ def expectUnit() {
+ Macros.foo(true)
+ }
+}
Something went wrong with that request. Please try again.