Support covariant maybe return types
commitc5ff6f540d28e691d1c39d2e6603898ab5002d21
authorThomas Leonard <talex5@gmail.com>
Fri, 19 Sep 2008 09:57:08 +0000 (19 10:57 +0100)
committerThomas Leonard <talex5@gmail.com>
Fri, 19 Sep 2008 10:05:25 +0000 (19 11:05 +0100)
treed6067f721eb377f911c7755878d3a186858e482e
parent17b864bc4050dfb338f84a410caf549544d4d5fa
Support covariant maybe return types

Can override

class Base:
  Base? get()

with

class Sub extends Base:
  Sub? get()
  or
  Sub get()
dmd/mtype.c