diff options
author | Martin Odersky <odersky@gmail.com> | 2016-02-02 21:53:49 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-09 09:43:08 +0100 |
commit | f6a5802b7185525f7e221b745ec283f8ea206161 (patch) | |
tree | b518daeefae8dd8111ee8c17594a65b1df700e24 /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | 187c241d7b2b3698a5773463c17fd26c8294d0f7 (diff) | |
download | dotty-f6a5802b7185525f7e221b745ec283f8ea206161.tar.gz dotty-f6a5802b7185525f7e221b745ec283f8ea206161.tar.bz2 dotty-f6a5802b7185525f7e221b745ec283f8ea206161.zip |
By-name parameters are not stable values.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index a4082607c..4495b4096 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -521,13 +521,7 @@ object SymDenotations { /** Is this a denotation of a stable term (or an arbitrary type)? */ final def isStable(implicit ctx: Context) = - isType || !is(UnstableValue, butNot = Stable) - - /** Field is initialized on use, not on definition; - * we do not count modules as fields here. - */ - final def isLateInitialized(implicit ctx: Context) = - is(Lazy, butNot = Module) || is(Param) && info.isInstanceOf[ExprType] + isType || is(Stable) || !(is(UnstableValue) || info.isInstanceOf[ExprType]) /** Is this a "real" method? A real method is a method which is: * - not an accessor |