There was an error while loading. Please reload this page.
1 parent 2fb7cbd commit a92fbcbCopy full SHA for a92fbcb
src/test/scala/com/github/dwickern/macros/NameOfTest.scala
@@ -74,6 +74,11 @@ class NameOfTest extends AnyFunSuite with Matchers {
74
nameOf(generic(???)) should equal ("generic")
75
}
76
77
+ test("identity function") {
78
+ nameOf[String](x => x) should equal ("x")
79
+ qualifiedNameOf[String](x => x) should equal ("")
80
+ }
81
+
82
test("instance member") {
83
class SomeClass(val foobar: String)
84
val myClass = new SomeClass("")
0 commit comments