diff options
author | schinz <schinz@epfl.ch> | 2005-05-11 18:33:23 +0000 |
---|---|---|
committer | schinz <schinz@epfl.ch> | 2005-05-11 18:33:23 +0000 |
commit | d1b4a12b05f0c5d1046c0b96d4259242cfc48853 (patch) | |
tree | c932a414140218b0f6e5827d9bc5ba988d30e0ec /sources/scalac/symtab | |
parent | ece0d0ed89a97f1c5d98eaf9f5a926680f5dbc0f (diff) | |
download | scala-d1b4a12b05f0c5d1046c0b96d4259242cfc48853.tar.gz scala-d1b4a12b05f0c5d1046c0b96d4259242cfc48853.tar.bz2 scala-d1b4a12b05f0c5d1046c0b96d4259242cfc48853.zip |
- bug fix: detect types whose instantiation can...
- bug fix: detect types whose instantiation can lead to infinite loops,
and compile them differently so that their parents are computed lazily
Diffstat (limited to 'sources/scalac/symtab')
-rw-r--r-- | sources/scalac/symtab/Definitions.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/scalac/symtab/Definitions.java b/sources/scalac/symtab/Definitions.java index 32c472e90b..11b49d1f57 100644 --- a/sources/scalac/symtab/Definitions.java +++ b/sources/scalac/symtab/Definitions.java @@ -239,6 +239,11 @@ public class Definitions { public final Symbol COMPOUNDTYPE_CLASS; + public final Symbol LAZYPARENTS_CLASS; + public final Type LAZYPARENTS_TYPE() { + return LAZYPARENTS_CLASS.staticType(); + } + /** The scala.Predef module */ public final Symbol PREDEF; @@ -822,6 +827,7 @@ public class Definitions { SINGLETYPE_CLASS = getJVMClass("scala.runtime.types.SingleType"); TYPECONSTRUCTOR_CLASS = getJVMClass("scala.runtime.types.TypeConstructor"); COMPOUNDTYPE_CLASS = getJVMClass("scala.runtime.types.CompoundType"); + LAZYPARENTS_CLASS = getJVMClass("scala.runtime.types.LazyParents"); PREDEF = getModule("scala.Predef"); CONSOLE = getModule("scala.Console"); |