Hamish Knight

Results 18 issues of Hamish Knight

This crashes in SILGen: ```swift extension Never { init(value: Self) { self = switch value { case let v: v } } } ``` ``` Assertion failed: (hasValidInsertionPoint()), function insertImpl,...

bug
compiler
SILGen
crash
switch
expressions
swift 5.9
assertion failure

### Description We ought to provide a fix-it for a regex such as `/ x/` or `/ x/` to use an extended literal instead e.g `#/ x/#`. For the space...

bug

*6.0 cherry-pick of #74991* - Explanation: Marks accessors as implicit in indexed modules - Scope: Affects the indexing of accessors in modules - Issue: rdar://130775560 - Risk: Low, the change...

🍒 release cherry pick
swift 6.0

Legacy driver version of swiftlang/swift-driver#1655 + an integration test for both the legacy and new driver. rdar://129337999

`#sourceLocation` requires setting and restoring state in the parser, so we cannot skip any bodies containing `#sourceLocation` tokens. Member skipping was already doing this, extend it to function body skipping...

Doing it in the post-walk meant we ended up walking the children twice, which led to duplicate diagnostics and incorrect inference of the level of application for function references. Move...

Because of the fact that we currently walk SequenceExpr operands twice in PreCheckExpr, we end up marking the following as a double apply instead of a single apply, allowing the...

bug
compiler
type checker