diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-05-17 10:10:10 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-05-17 10:10:10 -0700 |
commit | 446de86b3e51f45418cc87c0c9ec43c30bbab3d4 (patch) | |
tree | 783a0c75f0284d86600fdb6c5ee72488616e14d3 /src/library | |
parent | 25d1f6d0cb720129b5ac647542cfca3d18304ae2 (diff) | |
parent | 7813d660bea0fd9b987493baef019ea92f876a2f (diff) | |
download | scala-446de86b3e51f45418cc87c0c9ec43c30bbab3d4.tar.gz scala-446de86b3e51f45418cc87c0c9ec43c30bbab3d4.tar.bz2 scala-446de86b3e51f45418cc87c0c9ec43c30bbab3d4.zip |
Merge pull request #564 from scalamacros/topic/assertinresetattrs
fixes resetAttrs
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/reflect/api/ToolBoxes.scala | 4 | ||||
-rw-r--r-- | src/library/scala/reflect/makro/Typers.scala | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/reflect/api/ToolBoxes.scala b/src/library/scala/reflect/api/ToolBoxes.scala index aefd6b511c..15c9fcc403 100644 --- a/src/library/scala/reflect/api/ToolBoxes.scala +++ b/src/library/scala/reflect/api/ToolBoxes.scala @@ -59,14 +59,14 @@ trait ToolBoxes { self: Universe => * Note that this does not revert the tree to its pre-typer shape. * For more info, read up https://issues.scala-lang.org/browse/SI-5464. */ - def resetAllAttrs[T <: Tree](tree: T): T + def resetAllAttrs(tree: Tree): Tree /** Recursively resets locally defined symbols and types in a given tree. * * Note that this does not revert the tree to its pre-typer shape. * For more info, read up https://issues.scala-lang.org/browse/SI-5464. */ - def resetLocalAttrs[T <: Tree](tree: T): T + def resetLocalAttrs(tree: Tree): Tree /** Compiles and runs a tree using this ToolBox. * diff --git a/src/library/scala/reflect/makro/Typers.scala b/src/library/scala/reflect/makro/Typers.scala index c62c5f254c..90024a4f7a 100644 --- a/src/library/scala/reflect/makro/Typers.scala +++ b/src/library/scala/reflect/makro/Typers.scala @@ -66,14 +66,14 @@ trait Typers { * Note that this does not revert the tree to its pre-typer shape. * For more info, read up https://issues.scala-lang.org/browse/SI-5464. */ - def resetAllAttrs[T <: Tree](tree: T): T + def resetAllAttrs(tree: Tree): Tree /** Recursively resets locally defined symbols and types in a given tree. * * Note that this does not revert the tree to its pre-typer shape. * For more info, read up https://issues.scala-lang.org/browse/SI-5464. */ - def resetLocalAttrs[T <: Tree](tree: T): T + def resetLocalAttrs(tree: Tree): Tree /** Represents an error during typechecking */ |