diff options
author | Martin Odersky <odersky@gmail.com> | 2014-03-02 12:03:32 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-03-02 12:03:56 +0100 |
commit | 0ebdbde3d51f92647f3b1cd452d60648ed8e7a39 (patch) | |
tree | fa8016066b11b10db7f47d9a0a875a8114d28681 /src/dotty/tools/dotc/typer/Applications.scala | |
parent | cba210d0c362759a710f4d9b5dbf1ecfe0d1f278 (diff) | |
download | dotty-0ebdbde3d51f92647f3b1cd452d60648ed8e7a39.tar.gz dotty-0ebdbde3d51f92647f3b1cd452d60648ed8e7a39.tar.bz2 dotty-0ebdbde3d51f92647f3b1cd452d60648ed8e7a39.zip |
Rename baseType -> baseTypeRef
What was `baseType` and is now `baseTypeRef` only computes the prefix of of basetype, not the type arguments.
If type arguments need to be included there is `baseTypeWithArgs`. The reason is that type arguments are usually already encoded as member types. But this was a source of errors because in Scala 2, baseType includes the type arguements.
(also added test file structural.scala forgotten from last commit)
Diffstat (limited to 'src/dotty/tools/dotc/typer/Applications.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Applications.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala index 15dd0e9ad..4b43aa8b7 100644 --- a/src/dotty/tools/dotc/typer/Applications.scala +++ b/src/dotty/tools/dotc/typer/Applications.scala @@ -222,7 +222,7 @@ trait Applications extends Compatibility { self: Typer => val pre = if (meth.isClassConstructor) { // default getters for class constructors are found in the companion object - mpre.baseType(cls) match { + mpre.baseTypeRef(cls) match { case tp: TypeRef => ref(tp.prefix, cls.companionModule) case _ => NoType } |