-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(swift) add
actor
keyword (#3171)
* (swift) add `actor` keyword Coming in Swift 5.5, per [Swift Evolution](https://github.com/apple/swift-evolution/blob/main/proposals/0306-actors.md) * (swift) add markup tests for all type constructors These appeared to be missing before, so are now tested to be keywords. * (swift) treat 'actor' similarly to 'class' and others * (swift) move type definition tests to seperate suite * (swift) fix type definition tests * (swift) remove trailing line from type definition test case * (swift) add extension and protocol to type definition test suite
- Loading branch information
1 parent
58698d5
commit bd312ab
Showing
5 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<span class="hljs-keyword">class</span> <span class="hljs-title class_">TestClass</span> {} | ||
<span class="hljs-keyword">struct</span> <span class="hljs-title class_">TestStruct</span> {} | ||
<span class="hljs-keyword">enum</span> <span class="hljs-title class_">TestEnum</span> {} | ||
<span class="hljs-keyword">actor</span> <span class="hljs-title class_">TestActor</span> {} | ||
<span class="hljs-keyword">extension</span> <span class="hljs-title class_">TestExtension</span> {} | ||
<span class="hljs-keyword">protocol</span> <span class="hljs-title class_">TestProtocol</span> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class TestClass {} | ||
struct TestStruct {} | ||
enum TestEnum {} | ||
actor TestActor {} | ||
extension TestExtension {} | ||
protocol TestProtocol {} |