Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

untyped macros ignore type annotations #6971

Closed
scabug opened this issue Jan 14, 2013 · 2 comments
Closed

untyped macros ignore type annotations #6971

scabug opened this issue Jan 14, 2013 · 2 comments
Assignees

Comments

@scabug
Copy link

scabug commented Jan 14, 2013

Case 1:

def foo(x: _, y: Int) = macro impl
def impl(c: Context)(x: c.Tree, y: c.Tree) = ...

Case 2:

def bar(x: _) = macro impl
def impl(c: Context)(x: c.Expr[Int]) = ...

In both of these cases, typer could do its best to provide better-than-nothing type-safety guarantees. This of course entails various type inference stuff, which would be too much of an effort now.

@scabug
Copy link
Author

scabug commented Jan 14, 2013

Imported From: https://issues.scala-lang.org/browse/SI-6971?orig=1
Reporter: @xeno-by
Affected Versions: macro-paradise

@scabug scabug closed this as completed Aug 5, 2013
@scabug
Copy link
Author

scabug commented Aug 5, 2013

@xeno-by said (edited on Aug 5, 2013 2:10:05 PM UTC):
Untyped macros are discontinued: http://scalamacros.org/news/2013/08/05/macro-paradise-2.0.0-snapshot.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants