You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is impossible to define a macro inside a class with an AnyVal parameter, referencing an object with the same name as the class.
This fails to compile with: "error: an expression of type Null is ineligible for implicit conversion"
classFoo(a: Boolean/* or Int or Double or ...*/) {
defbar= macro Foo.impl
defbaz= macro OtherObject.impl //works
}
If the AnyVal parameter is replaced with AnyRef or a subclass of AnyRef, the error message is "error: not found: value Foo", as intended.
Additionally,
classFoo[A<:Boolean](a: A) { ... }
fails with right error message.
The text was updated successfully, but these errors were encountered:
It is impossible to define a macro inside a class with an AnyVal parameter, referencing an object with the same name as the class.
This fails to compile with: "error: an expression of type Null is ineligible for implicit conversion"
If the AnyVal parameter is replaced with AnyRef or a subclass of AnyRef, the error message is "error: not found: value Foo", as intended.
Additionally,
fails with right error message.
The text was updated successfully, but these errors were encountered: