diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-23 21:43:11 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-23 21:43:11 +0100 |
commit | 4f41454cbd1563926f4005d2ee1268538a6b22b1 (patch) | |
tree | 4bf977a7cb74eb2609404e03c6d5e02f718e8245 /src/dotty/tools/dotc/core/Types.scala | |
parent | 93630a2097dd52f2b764a3a739887c2a71398578 (diff) | |
download | dotty-4f41454cbd1563926f4005d2ee1268538a6b22b1.tar.gz dotty-4f41454cbd1563926f4005d2ee1268538a6b22b1.tar.bz2 dotty-4f41454cbd1563926f4005d2ee1268538a6b22b1.zip |
Fixing desugarings of classes.
1) get Method
The idea is that if a case class has exactly one case field, then that field is returned as result of the get method. If it has more than one, it is a subtype of Product and the fields are returned by the _i methods.
2) unapply: Boolean
If a class has no case fields the unapply method returns true, rather than the this.
3) Self names
A self clause
{ self => ...
if now desugared to
{ self: C =>
where C is the type of the class.
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
0 files changed, 0 insertions, 0 deletions