diff options
author | Martin Odersky <odersky@gmail.com> | 2003-05-01 09:01:16 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-05-01 09:01:16 +0000 |
commit | a5d85a9e9620699775e77ca0bfc4f1390e05229f (patch) | |
tree | bf493aa060133fb138dbc805b7ebf1ca7359fd7b /sources/scalac/symtab/Definitions.java | |
parent | d02f69f6023d73f6c6a956db5fbd9dd9dd7c91d2 (diff) | |
download | scala-a5d85a9e9620699775e77ca0bfc4f1390e05229f.tar.gz scala-a5d85a9e9620699775e77ca0bfc4f1390e05229f.tar.bz2 scala-a5d85a9e9620699775e77ca0bfc4f1390e05229f.zip |
*** empty log message ***
Diffstat (limited to 'sources/scalac/symtab/Definitions.java')
-rw-r--r-- | sources/scalac/symtab/Definitions.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/symtab/Definitions.java b/sources/scalac/symtab/Definitions.java index 5f2bf4735c..b2dc7ac8ae 100644 --- a/sources/scalac/symtab/Definitions.java +++ b/sources/scalac/symtab/Definitions.java @@ -424,7 +424,7 @@ public class Definitions { public Type functionType(Type[] argtps, Type restp) { Type[] argtps1 = new Type[argtps.length + 1]; System.arraycopy(argtps, 0, argtps1, 0, argtps.length); - argtps1[argtps.length] = Type.covarType(restp); + argtps1[argtps.length] = restp; return Type.appliedType( getType(Name.fromString("scala.Function" + argtps.length)), argtps1); @@ -433,7 +433,7 @@ public class Definitions { public Type partialFunctionType(Type argtpe, Type restpe) { Type[] argtps1 = new Type[2]; argtps1[0] = argtpe; - argtps1[1] = Type.covarType(restpe); + argtps1[1] = restpe; return Type.appliedType(PARTIALFUNCTION_CLASS.typeConstructor(), argtps1); } |