diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-12-20 19:14:57 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-12-20 19:14:57 -0800 |
commit | c6961e0fb8ca55d312fcc04272b3bfc983e56854 (patch) | |
tree | 3d6b8f77f1c518bc2a808314d2740c67b08a80d6 /test/files/pos | |
parent | 27643546e8eb4d2c5da6fc30a998e7ee799defcc (diff) | |
parent | b2bec5a1355bd271bed86b071823a64eeafc0618 (diff) | |
download | scala-c6961e0fb8ca55d312fcc04272b3bfc983e56854.tar.gz scala-c6961e0fb8ca55d312fcc04272b3bfc983e56854.tar.bz2 scala-c6961e0fb8ca55d312fcc04272b3bfc983e56854.zip |
Merge pull request #1769 from soc/SI-6809
SI-6809 Forbids deprecated case class definitions without parameter list
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/depmet_implicit_oopsla_session_simpler.scala | 2 | ||||
-rw-r--r-- | test/files/pos/infer2-pos.scala | 2 | ||||
-rw-r--r-- | test/files/pos/t0301.scala | 2 | ||||
-rw-r--r-- | test/files/pos/t344.scala | 4 | ||||
-rw-r--r-- | test/files/pos/t911.scala | 8 |
5 files changed, 9 insertions, 9 deletions
diff --git a/test/files/pos/depmet_implicit_oopsla_session_simpler.scala b/test/files/pos/depmet_implicit_oopsla_session_simpler.scala index d2986ef56f..7c9af66611 100644 --- a/test/files/pos/depmet_implicit_oopsla_session_simpler.scala +++ b/test/files/pos/depmet_implicit_oopsla_session_simpler.scala @@ -5,7 +5,7 @@ object Sessions { def run(dp: Dual): Unit } - sealed case class Stop extends Session { + sealed case class Stop() extends Session { type Dual = Stop def run(dp: Dual): Unit = {} diff --git a/test/files/pos/infer2-pos.scala b/test/files/pos/infer2-pos.scala index 06d0f5814f..0ed9666f40 100644 --- a/test/files/pos/infer2-pos.scala +++ b/test/files/pos/infer2-pos.scala @@ -1,7 +1,7 @@ package test class Lst[T] case class cons[T](x: T, xs: Lst[T]) extends Lst[T] -case class nil[T] extends Lst[T] +case class nil[T]() extends Lst[T] object test { Console.println(cons(1, nil())) } diff --git a/test/files/pos/t0301.scala b/test/files/pos/t0301.scala index cb68f38062..24b4776010 100644 --- a/test/files/pos/t0301.scala +++ b/test/files/pos/t0301.scala @@ -1,7 +1,7 @@ package fos abstract class Expr -case class Var extends Expr +case class Var() extends Expr object Analyzer { def substitution(expr: Expr, cls: (Var,Var)): Expr = diff --git a/test/files/pos/t344.scala b/test/files/pos/t344.scala index 8a6ad9120d..449a763af7 100644 --- a/test/files/pos/t344.scala +++ b/test/files/pos/t344.scala @@ -1,7 +1,7 @@ object Bug { class A; - case class A1 extends A; - case class A2 extends A; + case class A1() extends A; + case class A2() extends A; def f: A = if (true) A1() diff --git a/test/files/pos/t911.scala b/test/files/pos/t911.scala index 224b14cda3..cfa4f49dc1 100644 --- a/test/files/pos/t911.scala +++ b/test/files/pos/t911.scala @@ -1,6 +1,6 @@ object Test { -def foo : Any = { - case class Foo {} - Foo; -} + def foo: Any = { + case class Foo() {} + Foo; + } } |