Aladdin - Scala Bugtracking
[#404] project: compiler priority: low category: bug
submitter assigned to status date submitted
Philippe _ fixed 2005-03-07 11:20:09.0
subject ExpandMixin generates a malformed type
code
trait AbsIterator {
  type T;
  def next: T;
}
class StringIterator extends AbsIterator {
  type T = char;
  def next = 'a';
}
trait SyncIterator extends AbsIterator {
  abstract override def next: T = super.next;
}
class I extends StringIterator with SyncIterator;
what happened
Exception in thread "main" scalac.symtab.Type$Malformed: malformed type: AbsIterator$class#T
	at scalac.symtab.Type.typeRef(Type.java:215)
	at scalac.symtab.Type$Map.map(Type.java:1184)
	at scalac.symtab.Type$AsSeenFromMap.apply(Type.java:1412)
	at scalac.symtab.Type$Map.map(Type.java:1225)
	at scalac.symtab.Type$AsSeenFromMap.apply(Type.java:1421)
	at scalac.symtab.Type.asSeenFrom(Type.java:1469)
	at scalac.symtab.Type.memberType(Type.java:1487)
	at scalac.symtab.Type$SymbolSearch.getSeenTypeOf(Type.java:1051)
	at scalac.symtab.Type$SymbolSearch.-init-(Type.java:1025)
	at scalac.symtab.Type.lookup(Type.java:879)
	at scalac.symtab.Symbol.overridingSymbol(Symbol.java:1784)
	at scalac.symtab.Symbol.overridingSymbol(Symbol.java:1787)
	at scalac.transformer.ExpandMixinsPhase$ClassTreeExpander.getSuperMember(ExpandMixinsPhase.java:241)
	at scalac.transformer.ExpandMixinsPhase$ClassTreeExpander.transform(ExpandMixinsPhase.java:268)
	at scalac.ast.GenTransformer.transform(Transformer.java:553)
	at scalac.transformer.ExpandMixinsPhase$TreeExpander.transform(ExpandMixinsPhase.java:144)
	at scalac.transformer.ExpandMixinsPhase$ClassTreeExpander.transform(ExpandMixinsPhase.java:274)
	at scalac.ast.GenTransformer.transform(Transformer.java:468)
	at scalac.transformer.ExpandMixinsPhase$TreeExpander.transform(ExpandMixinsPhase.java:144)
	at scalac.transformer.ExpandMixinsPhase$ClassTreeExpander.transform(ExpandMixinsPhase.java:274)
	at scalac.ast.GenTransformer.transform(Transformer.java:591)
	at scalac.transformer.ExpandMixinsPhase.getExpandedBody(ExpandMixinsPhase.java:322)
	at scalac.transformer.ExpandMixinsPhase.access$19(ExpandMixinsPhase.java:53)
	at scalac.transformer.ExpandMixinsPhase$TreeExpander.transform(ExpandMixinsPhase.java:142)
	at scalac.ast.GenTransformer.transform(Transformer.java:596)
	at scalac.ast.GenTransformer.apply(Transformer.java:405)
	at scalac.transformer.ExpandMixinsPhase$TreeExpander.apply(ExpandMixinsPhase.java:134)
	at scalac.transformer.ExpandMixinsPhase.apply(ExpandMixinsPhase.java:97)
	at scalac.CompilationLoop.loop(CompilationLoop.java:102)
	at scalac.CompilationLoop.compile(CompilationLoop.java:60)
	at scalac.Global.compile(Global.java:391)
	at scalac.Global.compile(Global.java:366)
	at scala.tools.scalac.Main$.main1(Main.scala:47)
	at scala.tools.scalac.Main$.main(Main.scala:28)
	at scala.tools.scalac.Main.main(Main.scala:28)
what expected no error
[back to overview]
Changes of this bug report
Nikolay  edited on  2006-08-16 11:43:22.0
Someone
  (but who?)
must
  have
    fixed
      this
too
Just my first bugtracking haiku