Skip to content

Commit 5468b2e

Browse files
committed
regression test for _Concurrency module shadowing behavior
1 parent 973af64 commit 5468b2e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
public struct Task {
3+
public var someProperty : String = "123"
4+
public init() { }
5+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/ShadowsConcur.swiftmodule -module-name ShadowsConcur %S/Inputs/ShadowsConcur.swift
3+
// RUN: %target-typecheck-verify-swift -I %t -enable-experimental-concurrency
4+
// REQUIRES: concurrency
5+
6+
7+
import ShadowsConcur
8+
9+
func f(_ t : Task) -> Bool {
10+
return t.someProperty == "123"
11+
}
12+
13+
func g(_: _Concurrency.Task) {}

0 commit comments

Comments
 (0)