summaryrefslogtreecommitdiff
path: root/src/reflect
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-03-21 07:36:39 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-03-21 07:36:39 -0700
commitd816bc586080f89a823eb6bb96df17259307052c (patch)
treea5f4d0060a3a21d8a1a11e66231376914ec9cb57 /src/reflect
parent7adab908d661f1b238a96972e96ed11ea497bcdc (diff)
parent645634a283969d6283c6a80a812c5da03bb6f2bf (diff)
downloadscala-d816bc586080f89a823eb6bb96df17259307052c.tar.gz
scala-d816bc586080f89a823eb6bb96df17259307052c.tar.bz2
scala-d816bc586080f89a823eb6bb96df17259307052c.zip
Merge pull request #2239 from paulp/pr/warnings
Warnings removal and other cleanup.
Diffstat (limited to 'src/reflect')
-rw-r--r--src/reflect/scala/reflect/api/Trees.scala4
-rw-r--r--src/reflect/scala/reflect/internal/TreeGen.scala2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/reflect/scala/reflect/api/Trees.scala b/src/reflect/scala/reflect/api/Trees.scala
index 0170bf2032..18985fe83d 100644
--- a/src/reflect/scala/reflect/api/Trees.scala
+++ b/src/reflect/scala/reflect/api/Trees.scala
@@ -1038,7 +1038,7 @@ trait Trees { self: Universe =>
* `case` pat `if` guard => body
*
* If the guard is not present, the `guard` is set to `EmptyTree`.
- * If the body is not specified, the `body` is set to `Literal(Constant())`
+ * If the body is not specified, the `body` is set to `Literal(Constant(()))`
* @group Extractors
*/
abstract class CaseDefExtractor {
@@ -1059,7 +1059,7 @@ trait Trees { self: Universe =>
def guard: Tree
/** The body of the pattern matching clause.
- * Is equal to `Literal(Constant())` if the body is not specified.
+ * Is equal to `Literal(Constant(()))` if the body is not specified.
*/
def body: Tree
}
diff --git a/src/reflect/scala/reflect/internal/TreeGen.scala b/src/reflect/scala/reflect/internal/TreeGen.scala
index b2269e476f..d3e486311e 100644
--- a/src/reflect/scala/reflect/internal/TreeGen.scala
+++ b/src/reflect/scala/reflect/internal/TreeGen.scala
@@ -277,7 +277,7 @@ abstract class TreeGen extends macros.TreeBuilder {
/** Builds a tuple */
def mkTuple(elems: List[Tree]): Tree =
- if (elems.isEmpty) Literal(Constant())
+ if (elems.isEmpty) Literal(Constant(()))
else Apply(
Select(mkAttributedRef(TupleClass(elems.length).caseModule), nme.apply),
elems)