aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-11-07 17:05:14 +0100
committerMartin Odersky <odersky@gmail.com>2016-11-07 17:05:14 +0100
commit0d9dd7c7e366be71ca795b89b48def8b0d201a05 (patch)
tree226f41da3259288722cb6bc0a429ffb084690416 /src/dotty/tools/dotc/core/SymDenotations.scala
parent913f76a482efc733c01dd262a72de78e795d4b7b (diff)
downloaddotty-0d9dd7c7e366be71ca795b89b48def8b0d201a05.tar.gz
dotty-0d9dd7c7e366be71ca795b89b48def8b0d201a05.tar.bz2
dotty-0d9dd7c7e366be71ca795b89b48def8b0d201a05.zip
Use inline flag instead of @inline annotation
Convert `@inline` annotations to `inline` flags, not the other way round as was done before.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index a25be0a1f..fb6a40100 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -751,10 +751,7 @@ object SymDenotations {
// def isOverridable: Boolean = !!! need to enforce that classes cannot be redefined
def isSkolem: Boolean = name == nme.SKOLEM
- def isInlineMethod(implicit ctx: Context): Boolean =
- is(Method, butNot = Accessor) &&
- !isCompleting && // don't force method type; recursive inlines are ignored anyway.
- hasAnnotation(defn.InlineAnnot)
+ def isInlineMethod(implicit ctx: Context): Boolean = is(InlineMethod, butNot = Accessor)
// ------ access to related symbols ---------------------------------