Commit Graph

3 Commits

Author SHA1 Message Date
Slava Pestov
e1f50b2d36 SE-0193: Rename @_inlineable to @inlinable, @_versioned to @usableFromInline 2018-03-30 21:55:30 -07:00
David Hart
732ae1b2c2 Removed requires assert 2017-03-17 07:37:52 +01:00
David Hart
ba13a894c0 Fixed crasher 28707
The @_versioned accessibility check is done against the formal access. But the diagnostics is printed with getAccessForDiagnostics. In cases where the effective access is internal, the diagnostics will crash. Example:

```
class A { // implicitly internal
    @_versioned public var a: Int = 0 // explicity public
}
```
2017-03-15 07:38:53 +01:00