summaryrefslogtreecommitdiff
path: root/test/files/pos/bug767.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2008-06-10 08:46:06 +0000
committermichelou <michelou@epfl.ch>2008-06-10 08:46:06 +0000
commita4baf28d203959457d82762e27ffbb7104dc0a07 (patch)
tree7b249d126396b87cd937da6cd564000b8a6051de /test/files/pos/bug767.scala
parent113c79559555dd408ea76da5f462025536cbd7d6 (diff)
downloadscala-a4baf28d203959457d82762e27ffbb7104dc0a07.tar.gz
scala-a4baf28d203959457d82762e27ffbb7104dc0a07.tar.bz2
scala-a4baf28d203959457d82762e27ffbb7104dc0a07.zip
int -> Int, etc..
Diffstat (limited to 'test/files/pos/bug767.scala')
-rw-r--r--test/files/pos/bug767.scala24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/files/pos/bug767.scala b/test/files/pos/bug767.scala
index 05dd97f556..0c4067f022 100644
--- a/test/files/pos/bug767.scala
+++ b/test/files/pos/bug767.scala
@@ -1,18 +1,18 @@
abstract class AbsCell {
- type T = Node
- val init: T
- private var value: T = init
- def get: T = value
- def set (x: T): unit = { value = x }
+ type T = Node
+ val init: T
+ private var value: T = init
+ def get: T = value
+ def set (x: T) { value = x }
- class Node {
- val foo = 1
- }
+ class Node {
+ val foo = 1
+ }
}
object inner {
- def main(args: Array[String]): Unit = {
- val cell = new AbsCell { val init = new Node() }
- cell.set(new cell.type#T()) // nullpointer exception
- }
+ def main(args: Array[String]) {
+ val cell = new AbsCell { val init = new Node() }
+ cell.set(new cell.type#T()) // nullpointer exception
+ }
}