We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ddbb84 commit 8fb85adCopy full SHA for 8fb85ad
Tests/SwiftParserTest/DeclarationTests.swift
@@ -3349,6 +3349,25 @@ final class DeclarationTests: ParserTestCase {
3349
""",
3350
experimentalFeatures: .coroutineAccessors
3351
)
3352
+ assertParse(
3353
+ """
3354
+ public var i: Int {
3355
+ _read {
3356
+ yield _i
3357
+ }
3358
+ read {
3359
3360
3361
+ _modify {
3362
+ yield &_i
3363
3364
+ modify {
3365
3366
3367
3368
+ """,
3369
+ experimentalFeatures: .coroutineAccessors
3370
+ )
3371
assertParse(
3372
"""
3373
var i_rm: Int {
0 commit comments