Files
swift-mirror/test/SILGen
Brent Royal-Gordon 57469a6472 Allow shadowing of unavailable members
This change permits a subclass to redeclare an unavailable member from a superclass. For instance, suppose you write this code (or, more likely, a version where `Base` is an ObjC class):

```swift
class Base {
  @available(*, unavailable) init() {}
}

class Derived: Base {
  /* override */ init() {}
}
```

Previously, Swift would reject `Derived.init()` without the `override` keyword, telling you that you should add it, but it would also reject it *with* the `override` keyword, telling you that you can't override something that's unavailable. This PR makes Swift accept it without the `override` keyword; declaring it with the keyword is still forbidden.

Fixes rdar://65702529.
2020-07-22 15:49:01 -07:00
..
2020-03-19 02:20:21 -04:00
2020-03-19 02:20:21 -04:00
2020-03-19 02:20:21 -04:00
2020-03-19 02:20:21 -04:00
2019-11-17 14:29:05 -08:00
2020-03-19 02:20:21 -04:00
2020-03-19 02:20:21 -04:00
2020-03-19 02:20:21 -04:00
2020-03-19 02:20:21 -04:00
2020-03-19 02:20:21 -04:00
2020-03-19 02:20:21 -04:00
2020-07-13 14:05:13 -07:00
2020-03-19 02:20:21 -04:00
2020-03-19 02:20:21 -04:00
2020-03-19 02:20:21 -04:00
2020-03-19 02:20:21 -04:00
2020-02-24 12:14:21 -08:00
2020-03-19 02:20:21 -04:00