Skip to content

Commit 97eb6b6

Browse files
lrytzadriaanm
authored andcommitted
SI-1803, plus documentation and cleanups in Namers, mainly in typeSig
- when typing (and naming) a ValDef, tpt and rhs are now type checked in the same context (the inner / ValDef context). this does not change any behavior, but is more uniform (same as for DefDef). martin told me (offline) that this change is desirable if it doesn't break anything. (it doesn't). - typeSig is now more uniform with a separate method for each case (methodSig, valDefSig, etc). methodSig was cleaned up (no more variables) and documented. the type returned by methodSig no longer contains / refers to type skolems, but to the actual type parameters (so we don't need to replace the skolems lateron). - documentation on constructor contexts, type skolems - more tests for SI-5543
1 parent 63ebca1 commit 97eb6b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/files/pos/t1014.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import scala.xml.{NodeSeq, Elem}
22

3-
class EO extends App with Moo{
3+
class EO extends App with Moo {
4+
// return type is Flog, inherited from overridden method.
5+
// implicit conversions are applied because expected type `pt` is `Flog` when `computeType(rhs, pt)`.
46
def cat = <cat>dog</cat>
57

68
implicit def nodeSeqToFlog(in: Elem): Flog = new Flog(in)

0 commit comments

Comments
 (0)