diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-08-12 14:39:55 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-08-12 14:39:55 +0000 |
commit | d27e89c0bc0ee1775eae09238319c44e85a44d5d (patch) | |
tree | e2f81270d39cadcbe30949757cddf4e7af8ddb42 /test/files/neg/constrs.scala | |
parent | fe4591ba0c8d727ee563ba4752a86db5d220ec76 (diff) | |
download | scala-d27e89c0bc0ee1775eae09238319c44e85a44d5d.tar.gz scala-d27e89c0bc0ee1775eae09238319c44e85a44d5d.tar.bz2 scala-d27e89c0bc0ee1775eae09238319c44e85a44d5d.zip |
Fixing more deprecation warnings.
Diffstat (limited to 'test/files/neg/constrs.scala')
-rw-r--r-- | test/files/neg/constrs.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/neg/constrs.scala b/test/files/neg/constrs.scala index e425a25120..969f593a2d 100644 --- a/test/files/neg/constrs.scala +++ b/test/files/neg/constrs.scala @@ -1,12 +1,12 @@ object test { - abstract class Test(x: int) { + abstract class Test(x: Int) { type T; val u = x; - def this(y: int)(z: int)(t: this.T) = { this(this.u + y + z); Console.println(x) } + def this(y: Int)(z: Int)(t: this.T) = { this(this.u + y + z); Console.println(x) } } - class Foo(x: int) { + class Foo(x: Int) { def this() = this("abc") def this(x: String) = this(1) def this(x: boolean) = this(x) |