summaryrefslogtreecommitdiff
path: root/test/files/pos/t611.scala
blob: 40ad28db4b1938c5ecd9507fdcc5b16d7ce06250 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package bug.contrib_60;

abstract class Field {
  type FieldType;

  var internalValue: FieldType;
}

case class IntField(value: Int) extends Field {
  type FieldType = Int;

  var internalValue: FieldType = value;
}

case class StringField(value: String) extends Field {
  type FieldType = String;

  var internalValue: FieldType = value;
}

object Test {
  def main (args: scala.Array[String]) {
    Console.println(List(new StringField ("bar"), new IntField(8)))
  }
}