diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-12 10:50:35 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-03-14 12:05:29 +0100 |
commit | 6ec9fa443679acbd1cbfa4775debbd2ba6420a41 (patch) | |
tree | 28df82635c2941af57fd4f4d4a50f5323db6284c /compiler/src/dotty/tools/dotc/core/Symbols.scala | |
parent | 86bf552cd421288b00525eb1a264652ee32d742d (diff) | |
download | dotty-6ec9fa443679acbd1cbfa4775debbd2ba6420a41.tar.gz dotty-6ec9fa443679acbd1cbfa4775debbd2ba6420a41.tar.bz2 dotty-6ec9fa443679acbd1cbfa4775debbd2ba6420a41.zip |
Drop mixed MethodType apply method
The dropped method takes direct parameter types but a result type expression.
Since parameter types are now in general dependent as well, that method is
mostly redundant.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Symbols.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Symbols.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Symbols.scala b/compiler/src/dotty/tools/dotc/core/Symbols.scala index 9d1d6481d..33aba4d13 100644 --- a/compiler/src/dotty/tools/dotc/core/Symbols.scala +++ b/compiler/src/dotty/tools/dotc/core/Symbols.scala @@ -252,7 +252,7 @@ trait Symbols { this: Context => /** Create a class constructor symbol for given class `cls`. */ def newConstructor(cls: ClassSymbol, flags: FlagSet, paramNames: List[TermName], paramTypes: List[Type], privateWithin: Symbol = NoSymbol, coord: Coord = NoCoord) = - newSymbol(cls, nme.CONSTRUCTOR, flags | Method, MethodType(paramNames, paramTypes)(_ => cls.typeRef), privateWithin, coord) + newSymbol(cls, nme.CONSTRUCTOR, flags | Method, MethodType(paramNames, paramTypes, cls.typeRef), privateWithin, coord) /** Create an empty default constructor symbol for given class `cls`. */ def newDefaultConstructor(cls: ClassSymbol) = |