summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2007-07-19 15:53:28 +0000
committerIulian Dragos <jaguarul@gmail.com>2007-07-19 15:53:28 +0000
commite0fa88b7295431a4b0efae4cac2ad9680a11ac88 (patch)
tree1708661549723194840008832a4bc81db606fa34 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
parent5f07516f6a9f624f785dedd55c8a2894aace56d9 (diff)
downloadscala-e0fa88b7295431a4b0efae4cac2ad9680a11ac88.tar.gz
scala-e0fa88b7295431a4b0efae4cac2ad9680a11ac88.tar.bz2
scala-e0fa88b7295431a4b0efae4cac2ad9680a11ac88.zip
Changed annotation handling in the backend to u...
Changed annotation handling in the backend to use symbols instead of types. Added support for @inline and @noinline. Improved boxing/unboxing optimization.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index 30ef88a17b..174485c6cb 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -727,7 +727,7 @@ abstract class RefChecks extends InfoTransform {
val sym = tree.symbol
var result = tree
tree match {
- case DefDef(mods, name, tparams, vparams, tpt, EmptyTree) if tree.symbol.hasAttribute(definitions.NativeAttr.tpe) =>
+ case DefDef(mods, name, tparams, vparams, tpt, EmptyTree) if tree.symbol.hasAttribute(definitions.NativeAttr) =>
tree.symbol.resetFlag(DEFERRED)
result = transform(copy.DefDef(tree, mods, name, tparams, vparams, tpt,
typed(Apply(gen.mkAttributedRef(definitions.Predef_error), List(Literal("native method stub"))))))