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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

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 Aug 5, 2013

@scabug

This comment has been minimized.

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
You can’t perform that action at this time.