aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/typers.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/typers.scala')
-rw-r--r--tests/neg/typers.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/neg/typers.scala b/tests/neg/typers.scala
index b5bd1fa2c..9fcc63e38 100644
--- a/tests/neg/typers.scala
+++ b/tests/neg/typers.scala
@@ -22,11 +22,11 @@ object typers {
val z: Int
def z(): String // error: double def
- def f(x: Any) = () // error: double def
+ def f(x: Any) = () // OK!
def f(x: AnyRef): AnyRef
def g(x: Object): Unit
- def g[T](x: T): T = x // error: double def
+ def g[T](x: T): T = x // OK!
}