Aladdin - Scala Bugtracking
[#22] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Matthias Martin fixed 2003-05-22 14:30:17.0
subject Crash in ExpandMixins
code
object CI {
  trait TreeDisplay {
        type TreeNode <: ITreeNode;
        trait ITreeNode {
          def display(): unit;
        }
  }
  trait TreeDisplayExp {
        def getRoot(): TreeNode;
        type TreeNode <: ITreeNodeExp;
        trait ITreeNodeExp {}
  }
  trait TreeDisplayFinal extends TreeDisplay with TreeDisplayExp {
        type TreeNode <: ITreeNode with ITreeNodeExp;
  }
  abstract class SimpleTreeDisplay: TreeDisplayFinal extends TreeDisplay {
    def display() = { this.getRoot().display(); }
  }
}
what happened
Compiler crash in expand mixin phase (might also be a typechecking problem).
what expected Successfull compiler run.
[back to overview]
Changes of this bug report