Skip to content

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, LGTM


def impl2(a: MatcherFactory1)(self: Expr[a.AndNotWord]) =
'{ ~self } // error: access to value a from wrong staging level
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering how we can use a properly in such context? We need to have some principles to deal with terms in types.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could encode with something like

def impl2[T: Type](a: MatcherFactory1)(self: Expr[T])(implicit ev: T =:= a.AndNotWord) = ...

@liufengyun liufengyun merged commit 8f2fa50 into scala:master Feb 21, 2019
@ghost ghost removed the stat:needs review label Feb 21, 2019
@liufengyun liufengyun deleted the fix-#5954 branch February 21, 2019 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants