summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2007-01-31 15:41:15 +0000
committerMartin Odersky <odersky@gmail.com>2007-01-31 15:41:15 +0000
commit485a79aa79142c2740a64f8e7a83036067c7ee9c (patch)
treeec7b727adab3da022e61ddff8692b118333e1cb6 /src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala
parente566c7126ce2a593e9d5711784667a25bc92d514 (diff)
downloadscala-485a79aa79142c2740a64f8e7a83036067c7ee9c.tar.gz
scala-485a79aa79142c2740a64f8e7a83036067c7ee9c.tar.bz2
scala-485a79aa79142c2740a64f8e7a83036067c7ee9c.zip
made pattern constructors termsymbols
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala b/src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala
index 21f8afe7ac..7323b17fa3 100644
--- a/src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/ConstantFolder.scala
@@ -41,7 +41,7 @@ abstract class ConstantFolder {
private def fold(tree: Tree, compX: => Constant): Tree =
try {
val x = compX
- if ((x ne null) && x.tag != UnitTag) tree setType ConstantType(x)
+ if ((x ne null) && x.tag != UnitTag) tree setType mkConstantType(x)
else tree
} catch {
case _: ArithmeticException => tree // the code will crash at runtime,